摘要:
file/hello.c1 #include "apue.h"2 int3 main(void)4 {5 printf("hello world from process ID %d\n", getpid());6 exit(0);7 } 阅读全文
posted @ 2014-07-13 23:10
paullam
阅读(116)
评论(0)
推荐(0)
摘要:
mycat/getcputc.c 1 #include "apue.h" 2 int 3 main(void) 4 { 5 int c; 6 while ((c = getc(stdin)) != EOF) 7 if (putc(c, stdout) =... 阅读全文
posted @ 2014-07-13 23:08
paullam
阅读(98)
评论(0)
推荐(0)
摘要:
mycat/mycat.c 1 #include "apue.h" 2 #define BUFFSIZE 4096 3 int 4 main(void) 5 { 6 int n; 7 char buf[BUFFSIZE]; 8 while ((... 阅读全文
posted @ 2014-07-13 23:06
paullam
阅读(229)
评论(0)
推荐(0)
摘要:
file/ls1.c 1 #include "apue.h" 2 #include 3 int 4 main(int argc, char *argv[]) 5 { 6 DIR *dp; 7 struct dirent *dirp; 8 if (... 阅读全文
posted @ 2014-07-13 23:05
paullam
阅读(151)
评论(0)
推荐(0)
摘要:
运行结果:Program.cs 1 using System; 2 3 namespace Wrox.ProCSharp.Delegates 4 { 5 class Program 6 { 7 static void Main() 8 { 9 ... 阅读全文
posted @ 2014-07-13 22:17
paullam
阅读(305)
评论(0)
推荐(0)
浙公网安备 33010602011771号