android bugsse
android releaselication git-svn-id: svn://db.shs.com.ru/pip@40 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
54
main.cpp
54
main.cpp
@@ -114,7 +114,61 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Parent {
|
||||
public:
|
||||
virtual void print() {piCout << "Parent";}
|
||||
};
|
||||
|
||||
class Child: public Parent {
|
||||
public:
|
||||
void print() {piCout << "Child"; Parent::print();}
|
||||
};
|
||||
|
||||
#include <netdb.h>
|
||||
int main (int argc, char * argv[]) {
|
||||
hostent * he = 0;
|
||||
he = gethostbyname(argv[1]);
|
||||
piCout << he->h_name;
|
||||
piCout << he->h_aliases[0];
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*int cc = PIString(argv[1]).toInt();
|
||||
|
||||
piCout << "Deque";
|
||||
|
||||
Reference in New Issue
Block a user