-2

This question already has an answer here:

I am new to programing in C and I get this error:

unable to find string literal operator 'operator"" stylesheet'.

I am making a website for NodeMCU 0.9. My code:

 String message2 = "<!DOCTYPE html>";
      message2 += "<head>";
      message2 +=  "<title>Bootstrap Example</title>";
      message2 += " <meta name="viewport" content="width=device-width, initial-scale=1">";
      message2 += "<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">";
      message2 +=  "<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>";
      message2 +=  "<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>";

marked as duplicate by Michel Keijzers, jfpoilpret, per1234, SDsolar, user31481 Nov 13 '17 at 15:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • possible duplicate alright, same author, same code – Jaromanda X Nov 13 '17 at 1:03
0

I think I answered a similar question in a previous answer.

You use "before/after viewport in the fourth line, which should be prefixed with \ to make it an escape code to be treated like a " character instead of the start/end of a string.

Also afaik String is C++, as is the += operator, not C.

See answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.