為什么VS c++ 運行不了,加上#include <stdafx.h>才可以運行?
#include <stdafx.h>
#include<iostream>
//#include<stdlib.h>
using namespace std; ??
int main()
{
cout << "Hello c++" << endl;?
return 0;
}
#include <stdafx.h>
#include<iostream>
//#include<stdlib.h>
using namespace std; ??
int main()
{
cout << "Hello c++" << endl;?
return 0;
}
2018-01-17
舉報
2020-03-26
1>c:\users\win10\desktop\test\test\main.cpp(1): fatal error C1083: 無法打開包括文件:“stdafx.h”: No such file or directory
1>
1>生成失敗。
這什么問題呢?
2020-03-26
無法打開包括文件:“stdafx.h”: No such file or d
2018-10-09
在return 0;語句前加一個getchar();語句,getchar會一直等在輸入,程序運行結果框就正常顯示了? 一個不行就加兩個?? 或者在程序末尾添加語句:system("pause"); 記得加頭文件#include <stdlib.h>,
2018-01-17
"stdafx.h"是VC自動生成的,你可以選擇Win32工程