edit: spoke too soon, new code w/ errors. * didn't work.
Code:
/* Steven Billington
Simple bot
*/
#include <iostream.h>
#include <string.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 (!strcmp (input == "Hello"))
{
cout<<"Its a nice day out."<<"\n";
}
else
cout<<"What?\n";
return 0;
}
PHP Code:
--------------------Configuration: simplebot - Win32 Debug--------------------
Compiling...
simplebot.cpp
D:\MyProjects\Mine - experimental or unfinished\Marvin version one\simplebot.cpp(24) : error C2660: 'strcmp' : function does not take 1 parameters
Error executing cl.exe.
simplebot.obj - 1 error(s), 0 warning(s)