VS2015 学习笔记(一):新建C/C++项目、程序调试以及部分头文件缺失及解决办法

1.新建C/C++项目

以下链接详细地介绍了如何在VS2015中建立C/C++项目以及如何对程序进行编译、运行。

http://www.cnblogs.com/yankyblogs/p/7058036.html

2.程序调试

VS中程序调试,各版本基本差不多,下面链接介绍的是在VS2013中程序调试,VS2015也是一样的。

https://jingyan.baidu.com/article/1709ad808ad29f4634c4f00b.html

3. cannot open source file “unistd.h”

(1)将下面内容保存为unistd.h

#ifndef _UNISTD_H
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif 

(2)将上面生成的unistd.h放入到VS2015的头文件中,例如D:\Vs2015\VC\include

参考链接:https://blog.csdn.net/sinat_36053757/article/details/68487662?locationNum=3&fps=1

       https://download.csdn.net/download/panpan_jiang1/10301525

4.cannot open source file”pnh”

参考链接:https://www.cnblogs.com/riddick/p/7512618.html

5.c4996: 'fopen': This function or variable may be unsafe

参考链接:https://blog.csdn.net/zhangyuehuan/article/details/12012635

猜你喜欢

转载自blog.csdn.net/sinat_41612591/article/details/82080786