下文是关于Visual C++的一篇文章,相信很多人对Visual C++还不是很熟悉,先来看看在Visual C++中运行程序的具体操作吧。
方法/步骤
打开Microsoft Visual C++,点击文件新建,点击文件找到C++ Source File,注意这里不是工程。

在这里我把文件命名为1.cpp,后缀是.c或是.cpp都可以,点击确定。

代码写完后,首先要进行编译。


编译完成后进行链接,要确保链接后无错误。


点击执行按钮,结果如图。


以上就是在Visual C++中运行程序的具体操作了,大家都学会了吗?