我怎么在C++中使用"stdafx.h"?
我怎么在C++中使用"stdafx.h"?
这个问题已经在此处有答案了:
我在我的c++代码中遇到了一个问题。当我在我的代码中写了“include \"stdafx.h\"”时,出现了错误。这是为什么?我有两张图片来更好地解释我的问题。谁能帮助我?
这是我的代码:
#include #include "stdafx.h" using namespace std; int main() { int x, y,toplam=0; cout << "1. Sayiyi Giriniz:"; cin >> x; cout << "2. Sayiyi Giriniz:"; cin >> y; toplam = x + y; cout << "Sayilarin toplami:" << toplam << endl; system("PAUSE"); return 0; }
错误 C1083 无法打开包括文件:“stdafx.h”:没有那个文件或目录
错误 (active) E1696 无法打开源文件“stdafx.h”
admin 更改状态以发布 2023年5月23日