ok, i'm trying to learn C++ i don't have any background on Developing languges (if you count HTML and CSS are than i'm only decent at those) so this is my code:
Code:
#include <iostream>
using namespace std;
int main()
{
int x
int y
cout<<"please write this number: ";
cin>> x;
cin.ignore();
cout<<"please re-write the number: ";
cin>> y;
if (x == y) {
cout<<"indeed, you have a good memory sir";
}
if ( x != y) {
cout<<"sir, you have a bad memory";
}
cin.get();
}
ok don't flame me, this is my first program ever im making on my own! so i'm trying to make a program where you enter the same number twice, but it doesn't work.. i know there's some huge mistake.. so can someone help me out?