I dont know why this wont work.
Anyone got any ideas?
Its just a sample of it.
Code:#include <iostream> using namespace std; int main () { char buffer [20]; char pick; do{ cin.getline (buffer, 20); cout << buffer; if (buffer == "add"){ cout << "Hey hows it going?"; } if (buffer == "subtract"){ cout << "Hey hows it going?"; } if (buffer == "multiply"){ cout << "Hey hows it going?"; } if (buffer == "divide"){ cout << "Hey hows it going?"; } cin >> pick; }while (pick != 'e'); return 0; }