Take anything at everywhere to build knowlege

Wednesday, August 22, 2012

String contants special characters

Ex:
s = "abc??(x)";

Compile error by '-trigraphs' option of compiler,
??=、??(、??/、??)、??'、??<、??!、??>、??-  is each #、[、¥、]、^、{、|、}、̃
"abc??(x)" is "abc[x)".

Fix:
s = "abc\?\?(x)";
Posted by Unknown at 3:46 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2012 (19)
    • ►  October (3)
    • ►  September (2)
    • ▼  August (14)
      • 7 nguyên tắc sống của người giàu
      • Some suggestions when u make friend wt foreigner
      • String contants special characters
      • Some special marco define
      • Difference between 'new', 'new operator' and 'oper...
      • An example of dynamic_cast
      • virtual destructor of base class
      • Initialize for struct members in C++
      • Inside the Linux boot process
      • C reference
      • Shared Libraries
      • Bash Shell Scripting - 10 Seconds Guide
      • A look at Smart Pointers
      • Special macros in Makefile

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.