简体   繁体   English

C ++ Visual Studio社区源文件

[英]C++ visual studio community source files

I would like to know how to find the source files for visual studio projects as I need to upload my projects for marking, I received the message is quotes below from my teacher but I am not sure where to find the .cpp and the .h / .hpp files in my visual studio project/lab folders. 我想知道如何找到Visual Studio项目的源文件,因为我需要上传项目进行标记,我收到了老师的引号,但我不确定在哪里可以找到.cpp和.h / .hpp文件放在我的Visual Studio项目/实验室文件夹中。 I am assuming with just these files he will be able to open the projects in programs other than visual studio? 我假设仅凭这些文件,他就能在Visual Studio以外的程序中打开项目吗?

"Please just upload the source files if you can (.cpp and .h / .hpp file) – I don't require additional Visual Studio Packages etc." “请尽可能上传源文件(.cpp和.h / .hpp文件)–我不需要其他Visual Studio包等。”

Thanks 谢谢

By default your projects are stored in "%UserProfile%\\Documents\\Visual Studio 2015\\Projects" or similar depending on your version of IDE (ie. which Visual Studio version You use). 默认情况下,您的项目存储在“%UserProfile%\\ Documents \\ Visual Studio 2015 \\ Projects”或类似文件中,具体取决于您的IDE版本(即,您使用的Visual Studio版本)。

Assuming your project is named Project1, it's directory will be named the same and within this directory you will find yet another directory with the same name (so in default scenario it will all sum up to "%UserProfile%\\Documents\\Visual Studio 2015\\Projects\\Project1\\Project1". Within this directory you shall find source (.c, .cpp) and header (.h, .hpp) files. 假设您的项目名为Project1,则其目录将被命名为相同的目录,并且在此目录中您将找到另一个具有相同名称的目录(因此,在默认情况下,所有目录的总和为“%UserProfile%\\ Documents \\ Visual Studio 2015 \\ Projects \\ Project1 \\ Project1“。在该目录中,您将找到源(.c,.cpp)和头(.h,.hpp)文件。

In most cases those files contain all the work you've done on the project. 在大多数情况下,这些文件包含您在项目上所做的所有工作。 Most of other files populating project directory are non-essential, template, auto-generated or debug/release process products or by-products. 填充项目目录的其他大多数文件都是非必需的,模板的,自动生成的或调试/发布过程的产品或副产品。

Hence to examine and judge what was written in programming language or rebuild your project in any other IDE or outside of IDE, those files would be all that's necessary. 因此,要检查和判断用编程语言编写的内容或在任何其他IDE或IDE外部重建项目,这些文件就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM