Forums Register Login

//comments

+Pie Number of slices to send: Send
I placed a single line comment into a program and encountered a syntax error
I then removed the comment from inside the {} of the condition expression
and encounted no error.
I thought comments could be placed any where
+Pie Number of slices to send: Send
Are you sure that difference = num1-num2; is in a line below the comment and not in the same line as the comment?
+Pie Number of slices to send: Send
It's *very* unlikely that your comment is causing a syntax error.
Weird comments can cause compilation errors, but this isn't your problem.
+Pie Number of slices to send: Send
What exactly was the syntax error?
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 719 times.
Similar Threads
final variable initialization
The method showMessageDialog(Component, Object) in the type JOptionPane is not applic
Switch Case Problem
Large Numbers
why sometime we need to initialize integer variable ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:55:45.