im having trouble pin-pointing why my loop continues to execute infinetley. can someone point out what im doing wrong in my dowhile loop?
#include<iostream>
#include<string>
using namespace std;
int main()
{
string command;
char again;
do
{
cout << "Welcome to the Intrepeter!" << endl;
cout << "Please feel free to enter a command." << endl;
getline(cin, command);
if (command == "function1")
{
cout << "will call ....\n";
}
else if (command == "function2")
{
cout << "will assemble....\n";
}
else if (command != "function1" || "function2")
{
cout << "Invalid Entry\n";
cout << "Please your correct terms\n";
}
cout << "Would you like to try again?" <<endl;
cin >> again;
}while(again= 'y' || 'Y' );
return 0;
}