Yea i know this is lame but i'm new to this particular attempt, the code is self explanatory and i commented as to where the problem lies, thnx for the help.
Code:/* Steven Billington Simple bot */ #include <iostream.h> int main () { const max = 50; // Set limit for input. Also tried with just //input[5] with same problems char input[max]; cout<<"Hello\n"; //Prompt user for input cout<<"Response: "; cin.getline(input,max); //Store input into input variable cout<<"\n"; // Start a new line // Check to see what to do, program is skipping right to //else option if (input == "a") { cout<<"Its a nice day out."<<"\n"; } else cout<<"What?\n"; return 0; }



LinkBack URL
About LinkBacks




)