How to write the comment symbol in a string
i know there trick writing things such this, thougth 1 of might have quick answer:
error code:
error:
error code:
code: [select]
client.println("accept: text/html, application/xhtml+xml, */*");
error:
code: [select]
java.lang.runtimeexception: missing */ end of /* comment */
at processing.app.sketch.scrubcomments(sketch.java:1719)
at processing.app.preproc.pdepreprocessor.writeprefix(pdepreprocessor.java:105)
at processing.app.sketch.preprocess(sketch.java:1390)
at processing.app.sketch.preprocess(sketch.java:1339)
at processing.app.sketch.build(sketch.java:1585)
at processing.app.sketch.build(sketch.java:1567)
at processing.app.editor$defaultrunhandler.run(editor.java:1897)
at java.lang.thread.run(thread.java:619)
perhaps adding '\' character help:
if doesn't work, can use fact 2 adjacent quoted strings merged:
in both cases idea hide "/*" token java code doesn't have sense skip on string constants.
code: [select]
client.println("accept: text/html, application/xhtml+xml, */\*");
if doesn't work, can use fact 2 adjacent quoted strings merged:
code: [select]
client.println("accept: text/html, application/xhtml+xml, */" "*");
in both cases idea hide "/*" token java code doesn't have sense skip on string constants.
Arduino Forum > Using Arduino > Programming Questions > How to write the comment symbol in a string
arduino
Comments
Post a Comment