会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
好记性不如烂笔头
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
2015年4月15日
[学习记录]接口的封装与设计之文件读写
摘要: #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)
编辑
2015年3月28日
[学习笔记]scanf弊端以及解决方案
摘要: 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)
编辑
[学习笔记]通过open函数改变标准输出的方法
摘要: 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
公告