I can't seem to figure out whats wrong. This isn't a finished program but it should compile anyways.
#include <iostream>
#include <string>
using namespace std;
const string SENTINEL = "\n";
int main ()
{
char letter;
int letterCt;
cout << "Enter a line of characters" << endl;
/* TO BE FILLED IN */
cin >> letter;
while (letter != SENTINEL)
{
cout << letter;
}
return 0;
}
If I comment out the while statement it compiles just fine. Otherwise I get 9 errors. Any suggestions?