C++编程(2)

Educn 49 double d c int errornumber 1 int

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: ; signed char* psc = pc; unsigned char* puc = pc; psc = puc; // 以上四条语句均产生错误 } Beijing University of Posts & Telecommunications Beijing young@buptnet.edu.cn 4.4 整数类型 三种形式:int, signed int (signed) , unsigned int (unsigned) 三种大小:short int (short), int, long int (long) 与char不同,int 总是有符号的 整数文字量:7 1234 1234567890000 十六进制:0x3f 八进制:022 L(大小写)结尾表示long,U(大小写)结尾表 示unsigned,如:100UL Beijing University of Posts & Telecommunications Beijing young@buptnet.edu.cn 4.5 浮点类型 表示浮点数,即包括小数部分的数 三种大小:float, double, long double 浮点文字量:1.23 .23 0.23 1. 1.2e10 注意:浮点文字量的中间不能出现空格 以F(大小写)结尾表示float,不加后缀缺省 表示为double类型,若需要long double类 型的数字,可以加上L(大小写)后缀 Beijing University of Posts & Telecommunications Beijing young@buptnet.edu.cn 4.6 大小 C++基本类型的...
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