Newbie needing help with basic code!
Hi im new to the world of coding! Ive started out by reading some of the lessons on this site. They have been very helpful! I have started by trying a 'test' program. The program i am tryin to build is a basic username and password program (Sort of like a guessing game!)
Im having many problems with the code!
The code is
Code:
#include <iostream>
using namespace std;
int main()
{
char a;
cout<<"Please enter username: ";
cin>> a;
cin.ignore();
if ( a == "TeZ" ){
cout<<"Password: ";
cin.get();
}
}
It will not compile at all! When i try to compile the program the compiler (Dev-C++) says 'ISO C++ forbids comparison between pointer and integer'
Thanks in advance TeZ258