C++编程(2)

Educn char c 255 0xff int i c i unsigned char

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: > <: :> %: %:%: { } [ # ## Beijing University of Posts & Telecommunications Beijing 三联符(trigraph) C ??= ??( ??< ??/ ??) ??> ??’ ??! ??- # [ { \ } ^ | ~ [email protected] digraph and trigraph Examples 使用C的trigraph #include <stdio.h> void main(int argc, char *argv??(??)) ??< if (argc>1 && argv??(0??) != NULL) printf("Hello, %s!??/n",argv??(1??)); else printf("Hello, world!??/n"); return 0; 使用C++的digraph ??> #include <stdio.h> main(int argc, char *argv<::>) <% if (argc> 1 and argv<:0:> != NULL) printf("Hello, %s!??/n",argv<:1:>); else printf("Hello, world!??/n"); return 0; %> Beijing University of Posts & Telecommunications Beijing [email protected] 转义字符 名字 ASCII名字 NL(LF) 换行符 HT 水平制表符 VT 垂直制表符 BS 退格符 CR 回车符 FF 换页符 BEL 警铃符 \ 反斜线符 ? 问号 ‘ 单引号 “ 双引号 ooo 八进制 hhh 十六进制 Beijing University of Posts & Telecommunications Beijing C++名字 \n \t \v \b \r \f \a \\ \? \’ \” \ooo \xhhh...
View Full Document

This note was uploaded on 02/10/2014 for the course ECE C++ taught by Professor Xiaoshengtang during the Fall '13 term at BUPT.

Ask a homework question - tutors are online