请问如何在VS中运行单独的.cpp文件
附:代码
#include<iostream>
using namespace std;
int main()
{
int a=100,b=90,c=50,d=30,e=8;
int x;
x=a-(b-(c-(d-e)));
cout<<"x="<<x<<endl;
system("pause");
return 0;
}
注:我找了好多教程了
新建一个项目,添加源文件.cpp, 编译调试,生成解决方案。