so i wrote this small piece of code. it simply waits for the user to enter a command, and then, depending on the command, a different message appears. when i enter the simple words like debug and execute, it does what i want it to do. now, when i try to use the load filename command, my display does not accept the input and my "invalid entry" message appears. what am i doing wrong?
thank you.
#include<iostream>
#include<string>
using namespace std;
int main()
{
string command;
cout << "Welcome to the Intrepeter!" << endl;
cout << " Please feel free to enter a command." << endl;
cin >> command;
if (command == "load filename")
{
cout << " load the specified file\n";
}
else if (command == "execute")
{
cout << " execute the program\n";
}
else if (command == "debug")
{
cout << "debug mode\n";
}
else if (command == "assemble filename")
{
cout << "will assemble \n";
}
else if (command != "load filename" || "execute" || "debug" || "assemble filename")
{
cout << "Invalid Entry\n";
cout << "Please your correct terms\n";
}
while(true){}
return 0;
}