I have a problem about my c++ code. When ı write in my code include "stdafx.h" ı have errors. Why is the reason? I have 2 pics to better explain my problem. Can anyone help me ?
https://i.stack.imgur.com/XylsB.jpg
https://i.stack.imgur.com/zhgkr.jpg
There is my code:
#include <iostream>
#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;
}
Error C1083 Unable to open include file: 'stdafx.h': No such file or directory
Error (active) E1696 Source file "stdafx.h" cant open