I'm taking my first C++ class, so im very noobie here. i ran into this problem:
i have a simple program (extremely simple), and it runs (yay

), but i want to ask the user to input Y/N so that the program will run from the beginning again if the input is Y (basically asks the user if u want it to run again). BUT, i dont know how to do that...
so far i know there's the while loop that can do it, but if i do this:
char c;
while (c ==
y)
{
blablabla
cout << "Do you want to continue? (Y/N)" << endl;
cin >> c;
}
the program gives me the error of an undeclared y (the one in red).
so obviously this is not the way to do it. any C++ experts out want to lend me a hand?