摘要: 原文 from http://www.learncpp.com/cpp-tutorial/24-integers/整型的变量如-1,0,3,4。C++中含有四种不同的整型变量,char,short,int和long。这些整型之间唯一的不同点是它们占有的内存大小,更大的整型能够保存更大的数值。你可以用sizeof操作符查看具体的大小。在这个教程中,我们假设:a char is 1 bytea short is 2 bytesan int is either 2 or 4 bytesa long is 4 bytes声明一些变量: 1: char chChar; 2: short int ... 阅读全文
posted @ 2012-05-04 14:13 grassofsky 阅读(279) 评论(0) 推荐(0) 编辑