Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. //02 문장 출력
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. cout << "Somebody once said, \"Who\'s responsible for the riots?" << endl;
  9. cout << "The rioters.\"" << endl;
  10. cout << "\'A\' and \"A\" mean different things." << endl;
  11. cout << "A backslash, \\, preceding a character is called" << endl;
  12. cout << "You must escape the ability of the \" to terminate" << endl;
  13. cout << "a string constant" << endl;
  14. cout << "by usng \\\", or the ability of the \\ to escape, by using \\\\." << endl;
  15. cout << "A stray \\, say \\z, in a string constant will have" << endl;
  16. cout << "defferent effects on different compilers." << endl;
  17. cout << "\\n is a new line character." << endl;
  18. cout << "\\r a carriage return" << endl;
  19. cout << "\\t a tab" << endl;
  20. cout << "\\a and alert" << endl;
  21. cout << "\\\\ a backslash" << endl;
  22. cout << "\\' a single quote" << endl;
  23. cout << "\\\" a double quote "<< endl;
  24. cout << "\"\\n\\r\\t\\a\\\\\\\'\\\"\" is a string of escape sequence characters." << endl;
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement