这是我在C#上的Visual Studio上的第一个程序。 我没有编写自己的代码,我试图通过简单的控制台写入来打开任何模板项目。
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
// Tips for Getting Started:
// 1. Use the Solution Explorer window to add/manage files
// 2. Use the Team Explorer window to connect to source control
// 3. Use the Output window to see build output and other messages
// 4. Use the Error List window to view errors
// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
但是我收到我不知道如何解决的错误。
错误:
无法正确构建。
当我尝试构建时,会有很多错误
例如
无法打开源文件...(大量信息)
全球范围没有....(大量)
当我尝试运行时,显然它不会运行。它会告诉我
“无法启动程序。'C:\ repo .... \ Debug \ ConsoleApplication1.exe'系统找不到指定的文件。”
这是我的第一个程序,我无法运行它。我相信它可能是由于项目的文件路径-无法找到适当的文件。我也不知道该调整哪个设置……可能是一个非常简单的解决方案,但我无法在线找到它。谢谢。
答案 0 :(得分:0)