vc
李小三r
这个作者很懒,什么都没留下…
展开
-
Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
在VS 2012 中编译 C 语言项目,如果使用了 scanf 函数,编译时便会提示如下错误: error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNI转载 2014-03-03 14:45:56 · 609 阅读 · 0 评论 -
expression:stream!=NULL
如果fopen()后返回的是NULL;就不能调用fclose()了; 用fopen()获得的文件句柄不是NULL,那么就需要用fclose()来关闭它。如果是NULL则不需要 null就表示你打开文件失败了,根本都没有成功的访问文件,也就不存在对数据有什么损坏的可能。不需要关闭原创 2014-03-03 10:03:13 · 4938 阅读 · 0 评论