摘要: #include "stdafx.h"#include #include struct student{ char name[10]; int num; int age; char addr[40];};student s1[2],s2[2],*p1,*p2;int main... 阅读全文
posted @ 2015-04-17 16:37 码农@163 阅读(668) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #includeint main(){ FILE *fp; char ch; char *str = "www.cskaoyan.com"; if(fopen_s(&fp,"ReadMe.txt","at+") != N... 阅读全文
posted @ 2015-04-17 15:39 码农@163 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 文件的操作1,提高速度 使用文件指针2 文件指针与磁盘文件建立联系,以后对文件操作都将通过文件指针来进行。 fopen(文件名,使用文件方式) 文件打开不成功 将返回一个空指针NULL 文件使用方式 r w rb wb fgetc() getc() 从指定文件中一次读取一个字符 ... 阅读全文
posted @ 2015-04-17 14:52 码农@163 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int main(){ FILE *readfile,*writefile; char ch; fopen_s(&readfile,"ReadMe.txt","r"); fopen_s(&writef... 阅读全文
posted @ 2015-04-17 14:36 码农@163 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include const int MAXN = 1000 + 10;int n, target[MAXN];int main(){ while(scanf_s("%d",&n,sizeof(n)) == 1) { ... 阅读全文
posted @ 2015-04-17 09:41 码农@163 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include const int MAXN = 50;int queue[MAXN];int main(){ int n,front,rear; scanf_s("%d",&n,sizeof(n)); for(int i ... 阅读全文
posted @ 2015-04-17 09:06 码农@163 阅读(122) 评论(0) 推荐(0) 编辑