You have an extra semicolon after each of your ifs.
This is what your code does right now:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
if (input == "yes")
; // Empty statement that does nothing
{ // These curly braces don't really do anything in this case
// These lines will always run (they're not part of the 'if')
cout<<"I know how you feel";
cin.get();
}
elseif (input == "no") // Compiler error: no matching 'if'
;
{ // Some more curly braces that don't do anything
cout<<"Test";
cin.get();
cin.get();
}