HOW IS AN ESCAPE CHARACTER USED?

Hi everyone, I have this line off code qry.prepare("SELECT * FROM public."Users"");. My problem here is that the word "Users" is supposed to be enclosed in quotation marks for the code to execute correctly but as soon as i put a quotation mark just before the word Users C++ thinks I am closing the quotation mark before the word "SELECT" how can I stop this from happening?
closed account (Dy7SLyTq)
use \"
To elaborate on what DTSCode said, to have quotation marks in strings, use a backslash before the quotation mark, such as this example: cout << "\"Hi there,\" she said.". This would print: "Hi there," she said.
Last edited on
Topic archived. No new replies allowed.