摘要: #include #include #include #include #include int main(){ char fUrl[] = "c:/document/1.txt"; FILE * fp; char * tmp; long len; int a_len; time_t tt; cha... 阅读全文
posted @ 2015-05-08 21:51 张不正 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 对于strcpy来说,它会把字符串最后的‘\0’一起拷贝对于strlen来说,它计算字符串长度的时候不会把最后的‘\0’计算进去 阅读全文
posted @ 2015-05-08 21:17 张不正 阅读(2249) 评论(1) 推荐(0) 编辑
摘要: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\或者使用斜杠表示,就像这样:C:/ProgramData/Microsoft/Windows/Start Menu/Programs/StartUp/以上两种方式都可以,win8... 阅读全文
posted @ 2015-05-08 19:21 张不正 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 这是原来的代码:#include int main(){ FILE * fp; int ch; fp = fopen("d:\\aaaaa\\1.txt","r"); while (!feof(fp)) { ch = getc(fp); putchar(ch); } fclose(fp); re... 阅读全文
posted @ 2015-05-08 11:56 张不正 阅读(522) 评论(0) 推荐(0) 编辑
返回顶部