just having a problem with the c++ compiler on Visual Studios
when i press F5(compile and run), it executes the old code, even when i reload.
anyone know what's happening?
the code is:
#include <iostream>
using namespace std;
int main()
{
int x;
char letter;
float the_float;
cout << "HEY, you, I'm alive! Oh, and Hello World!\n";
x = 2;
cout << x << "\n";
x = x + 2;
cout << x << "\n";
cout << x << "\n";
x = x * 2;
cout << x << "\n";
cout << x << "\n";
x = x + 2;
cout << x << "\n";
x = x * x;
cout << x << "\n";
cin.get();
}
which supposed to show (new code)
HEY, you, I'm alive! Oh, and Hello World!
2
4
4
8
8
10
100
but instead shows (old code)
HEY, you, I'm alive! Oh, and Hello World!
2
4
4
6
6
8
10