weixin_39832727的博客int countlines(){// count the number of lines in the file called filenameFILE *fp = fopen("words", "r");int ch=0;int lines=0;if (fp == NULL){return 0;}lines++;while(!feof(fp)){ch = fgetc(fp);...
孤傲小二~阿沐的博客在使用VS2013时报错 fopen和fopen_s的区别 Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. fopen函数: 原型:FILE * fopen(const char * ...