摘要: SYNOPSIS /* According to POSIX.1-2001 */ #include /* According to earlier standards */ #include #include #inclu... 阅读全文
posted @ 2014-08-23 23:02 Acjx 阅读(2277) 评论(0) 推荐(0) 编辑
摘要: NAME popen, pclose - pipe stream to or from a processSYNOPSIS #include FILE *popen(const char *command, const char *type); int pclose(FILE *stream);DESCRIPTION The popen... 阅读全文
posted @ 2014-08-23 12:43 Acjx 阅读(615) 评论(2) 推荐(0) 编辑
摘要: 1 基于文件指针的数据读写基于文件指针的数据读写,通常为标准函数,在Windows与Linux下,均可以使用。数据块读写NAME fread, fwrite - binary stream input/outputSYNOPSIS #include size_t... 阅读全文
posted @ 2014-08-23 11:05 Acjx 阅读(385) 评论(0) 推荐(0) 编辑
摘要: int ch;while( (ch = getchar()) != EOF ){ putchar(ch);}执行程序,输入:we are the,然后回车。运行结果如下:[purple@localhost 0822]$ ./a.outwe are thewe are the注意光标位置是在最后一行空白行上,以及getchar是接收空格以及\n的。即执行程序,输入:we are the,然后回... 阅读全文
posted @ 2014-08-23 00:30 Acjx 阅读(291) 评论(0) 推荐(0) 编辑