Well there's your mistake. The op had a big problem with his conditions earlier, so if I was going to post an answer in code, I would do my best to make sure the conditions worked. Yours don't, so I made a comment.
Well there's your mistake. The op had a big problem with his conditions earlier, so if I was going to post an answer in code, I would do my best to make sure the conditions worked. Yours don't, so I made a comment.
Or you could refactor away all the junk and just go with:
Code:#include <iostream> int main() { std::cout<<"Megan Fox is the hottest girl!"<<std::endl; }
C++ does not require an explicit return statement from main.
Originally Posted by c++ standard
hmm... I understand that except for the last part where it says:
What is this there for?Code:} while (HottestGirl == 0);
Also, one thing this doesn't do is display "Selection: " before the user inputting the selection. Is there a way to fix this or no? It's not that it's so important, the program means nothing, I am just trying to learn
Last edited by PersianStyle; 07-13-2009 at 01:14 AM.