And while I'd harp on you for using namespace STD, as well as system("PAUSE"), It will be fine for a program of this simplicity... just try to not use either of those on future programs. There's a forum thread on the first page of this subforum explaining why not to use system("PAUSE"). As for using namespace STD... well, the example I recall reading is that say you have two namespaces, foo and bar. Say that foo has the function quut(int a), which you use in a program. However, if bar were to update and suddenly have a function quut(int a) with an entirely different function, there would be quite the issue in your code. Hence why it is poor coding practice to use namespace STD. What you can do instead is state STD:: in front of every instance of a function that is namespace STD, such as cout, cin, and string. Also, \n is your friend.
I have no idea what you guys are saying. I tried the if (option == M) but it said the same thing. My teacher is being difficult, he never really told us about using namespace std and system("PAUSE")...he just says we need it in order for the program to work.
Yes, M is a variable- and it doesn't need to be. He could instead just not make it a variable due to it being otherwise pointless to have as a variable. He's checking whether option is equal to M, which in this case based on what his code is, should hold the letter M. I think that is the confusion.