ok before you post laughing just know that i am extreamly bad at c++ at the moment so dont laugh TOO hard
anyway...
i am trying a simple text base variable program in c++ and for some resone it only remembers numbers and not letters(allways says 2 when i type in letters)
heres the code(note this is being compiled in dev c++)
any help?Code:#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int name;
cout << "what is your username?";
cin >> name;
cout << "hello " << name << ".";
cout << endl;
system("PAUSE");
return EXIT_SUCCESS;
}