Parse Error
Yes I am learning C++, getting stuck on the hello world is some what noobish but so what <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
Here's the problem, I don't understand it
Here's the problem, I don't understand it
Comments
thanks to Detritus! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
And maybe add { behind each string between the first { and last }
/me shurgs, i only know .qc quakec <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
Edit: Also, the slash is the wrong way. / is just a slash, while \ is the escape character. So it would be \n, and \\ for a backslash.
C++: cout << "Natural Selection";
Java: System.out.println("Natural Selection");
It's even worse when dealing with a GUI. For example, a simple Yes/No dialog:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->JOptionPane.showInternalConfirmDialog(frame,"Please choose one", "information",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.INFORMATION_MESSAGE);<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Im making a console app (no extra mubo for now) and it closes automaticly (I tryed cin>>get(); as the help file said to do but it doesnt pause the program. So my question is is there a way to pause the program to read text then hit any key to continue (or will I read it later in the book about something like grabing key input from ASII code or something like that)?
Hibame, you could just add a useless cin statement with variable info that doesn't do anything. Although that solution will cause any key except the enter key to print text...
Hibame, you could just add a useless cin statement with variable info that doesn't do anything. Although that solution will cause any key except the enter key to print text... <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
I thought of that and thats exactly why I didnt want to do it =/
Im making a console app (no extra mubo for now) and it closes automaticly (I tryed cin>>get(); as the help file said to do but it doesnt pause the program. So my question is is there a way to pause the program to read text then hit any key to continue (or will I read it later in the book about something like grabing key input from ASII code or something like that)? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
I don't know of a way to fix it, but if you want you could start it via the command prompt, which will let you see the last line.