C++ Visual Studio 2015 中没有控制台应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36269673/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No console application in Visual Studio 2015?
提问by MoustacheSpy
I know this might sound extremelydumb, but I can't find the console application template in visual studio 2015. When installed I clicked on custom and selected everything so I wouldn't have to go through the hassle of adding files later on so of course I have visual c++ installed. But for some reason there's no console application template.
我知道这听起来可能非常愚蠢,但我在 Visual Studio 2015 中找不到控制台应用程序模板。安装时,我单击了自定义并选择了所有内容,这样我就不必再费力添加文件了当然我安装了visual c++。但出于某种原因,没有控制台应用程序模板。
Any ideas? I'm using the community edition.
有任何想法吗?我用的是社区版。
回答by ComicSansMS
It's located under Templates->Visual C++->Win32->Win32 Console Application.
它位于Templates->Visual C++->Win32->Win32 Console Application 下。
If you cannot find it there, it probably means you did not install the Windows SDK. Go to the Control Panel->Programs and Features, select Microsoft Visual Studio Community 2015, right click on it and select Change.
如果您在那里找不到它,则可能意味着您没有安装 Windows SDK。转到Control Panel->Programs and Features,选择Microsoft Visual Studio Community 2015,右键单击它并选择Change。
The SDK is hidden quite well in the list of installable features. You can find it under Windows and Web Development->Universal Windows App Development Tools. Make sure the Windows 10 SDKis selected. By default it's not and I tend to forget to check it when installing VS2015 because it's so damn well hidden.
SDK 在可安装功能列表中隐藏得很好。您可以在Windows and Web Development->Universal Windows App Development Tools下找到它。确保选择了Windows 10 SDK。默认情况下它不是,我倾向于在安装 VS2015 时忘记检查它,因为它隐藏得非常好。
回答by Runni Kumari
SOLVED !!! it is generally with windows 10 or xp so when you go to visual c++ there is option of install windows support for ... and let it download bingo!! next time you can see it there
解决了 !!!它通常与 Windows 10 或 xp 一起使用,因此当您使用 Visual C++ 时,可以选择安装 Windows 支持...并让它下载宾果游戏!!下次你可以在那里看到它
install these two
安装这两个
after installation
安装后