Ok so I am working through examples thought the Bjarne's book. And I understand that single characters are delimited by single quotes, such as 'x'.
Then there are double quotes which delimit strings, such as "Hello,!"
In this book there are moment when this makes sense and times when they don't make sense.
For example:
cout << "Hello, " << first <<" << second << '\n'; //doesn't /n have single quotes?
cout << "Hello, " << first_name << " (age " << age << ")\n"; // why does /n have double quotes around it?
If anyone can explain the syntax differences between the two examples, that would greatly be appreciated.
EDIT-----------------------
cout << "Hello, " << first <<" << second << '\n'; //doesn't /n have single quotes? Okay so /n is accounted for as a single character in the first example and as two in the second....... ) + /n My follow up question is with the first example. If the single quotes delimit the /n. Why is there only 3 sets of ""s? Shouldn't it be like this: <