Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //02 문장 출력
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Somebody once said, \"Who\'s responsible for the riots?" << endl;
- cout << "The rioters.\"" << endl;
- cout << "\'A\' and \"A\" mean different things." << endl;
- cout << "A backslash, \\, preceding a character is called" << endl;
- cout << "You must escape the ability of the \" to terminate" << endl;
- cout << "a string constant" << endl;
- cout << "by usng \\\", or the ability of the \\ to escape, by using \\\\." << endl;
- cout << "A stray \\, say \\z, in a string constant will have" << endl;
- cout << "defferent effects on different compilers." << endl;
- cout << "\\n is a new line character." << endl;
- cout << "\\r a carriage return" << endl;
- cout << "\\t a tab" << endl;
- cout << "\\a and alert" << endl;
- cout << "\\\\ a backslash" << endl;
- cout << "\\' a single quote" << endl;
- cout << "\\\" a double quote "<< endl;
- cout << "\"\\n\\r\\t\\a\\\\\\\'\\\"\" is a string of escape sequence characters." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement