[英]Source file header file and other files are not displayed when I create empty C++ Project in visual studio 2019
I am very new to visual studio and I watched a couple of tutorials to understand how to use it, But I ran into a problem.我对视觉工作室很陌生,我看了几个教程来了解如何使用它,但是我遇到了一个问题。 Every person I watched on YT has a source file, header file, and other files when creating an empty Project but this isn't a case for me and I basically can't write anything.
我在 YT 上看到的每个人都有一个源文件,header 文件,以及创建空项目时的其他文件,但这对我来说不是这种情况,我基本上什么也写不出来。 when I try to add a CPP file it doesn't even show an option to add it, it only shows class and resource when I right click and press on add.
当我尝试添加一个 CPP 文件时,它甚至没有显示添加它的选项,当我右键单击并按下添加时,它只显示 class 和资源。 Basically, I want the files to show so I can create my main program and play around with it.
基本上,我希望显示这些文件,以便我可以创建我的主程序并使用它。
Help is much appreciated.非常感谢您的帮助。
empty project
.empty project
。source file
option.source file
选项。add
and create a new itemadd
和创建新项目.cpp file
and press add..cpp file
并按添加。 And Congrats your.cpp file is created.恭喜您的.cpp 文件已创建。 Do the same procedure to create header file and class.
执行相同的过程来创建 header 文件和 class。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.