cout << endl << "\n\n\nWhat would you like to do?";
cout << endl << " Add"
<< endl << " View"
<< endl << " Delete\n- ";
cin >> todo;
transform(todo.begin(), todo.end(), todo.begin(), toupper);
cout << todo;
bool done = true;
while (!done)
{
if (todo == "DELETE")
{
system("cls");
dlt();
done = true;
break;
}
else if (todo == "VIEW")
{
system("cls");
view();
done = true;
break;
}
else if (todo == "ADD")
{
system("cls");
add();
done = true;
break;
}
else
{
system("cls");
mainmenu();
done = false;
break;
}
}
return 0;
}
so thats my code. I don't understand but i can cout << todo; and it's all caps like i wanted but it wont pass todo into the while loop for some reason. does anyone know what to do?