上一页 1 ··· 5 6 7 8 9
摘要: #include using namespace std;#define StructArrarySize 5 // 老师数量 #define StudentNum 3 // 每位老师... 阅读全文
posted @ 2015-04-15 13:54 张仕传 阅读(166) 评论(0) 推荐(0) 编辑
摘要: /* 题目: //声明一个结构体类型 struct _AdvTeacher { char *name; char *tile; int age; ... 阅读全文
posted @ 2015-04-15 13:53 张仕传 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 int main(void) 6 { 7 char buf[10]; 8 //memset(buf, 0, 100); 9 //strcpy(buf, "hello world\n");10 ... 阅读全文
posted @ 2015-03-28 14:19 张仕传 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1 int main(void) 2 { 3 char s[] = "abc.txt"; 4 int i = 0; 5 6 close(STDOUT_FILENO);//关闭标准输出文件描述符 7 int fd1 = open("/dev/pts/1", O_WR... 阅读全文
posted @ 2015-03-28 14:09 张仕传 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9