為什么VS c++ 運(yùn)行不了,加上#include <stdafx.h>才可以運(yùn)行?
#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
舉報(bào)
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;語句前加一個(gè)getchar();語句,getchar會(huì)一直等在輸入,程序運(yùn)行結(jié)果框就正常顯示了? 一個(gè)不行就加兩個(gè)?? 或者在程序末尾添加語句:system("pause"); 記得加頭文件#include <stdlib.h>,
2018-01-17
"stdafx.h"是VC自動(dòng)生成的,你可以選擇Win32工程