The idea here is that if the user types "hi", then the loop ends, however it doesn't.
Code:void conversation1 ()
{
int integer;
char command[256];
integer=1;
do
cout<<"hi!";
cout <<"\n\nEnter Command: ";
cin.getline(command, 256, '\n');
{
if (!strcmpi("hi", command))
{
integer=0;
}
}
while (integer!=0);
}