作为一款流行的Java应用程序IDE,Intellij Idea的外观在我看来非常漂亮.它是怎么做到的?如何在我的摇摆应用程序中获得Intellij Idea的外观和感觉?
我认为这段代码和错误是不言自明的,但我不知道为什么?
环境:
操作系统:Mac OS X 10.6.1
编译器:i686-apple-darwin10-gcc-4.2.1
代码:
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <netdb.h>
4 #include <sys/socket.h>
5
6 int
7 main(int argc, char **argv)
8 {
9 char *ptr, **pptr;
10 struct hostent *hptr;
11 char str[32];
12
13 //ptr = argv[1];
14 ptr = "www.google.com";
15
16 if ((hptr = gethostbyname(ptr)) == NULL) {
17 printf("gethostbyname error for host:%s\n", ptr);
18
19 }
20 printf("official hostname:%s\n", hptr->h_name);
21
22 for (pptr = hptr->h_aliases; *pptr != …Run Code Online (Sandbox Code Playgroud)