摘要:
sizeof操作符 如果我们希望在数组列表中动态添加新的字符串,sizeof操作符可以帮助我们。 sizeof操作符产生size_t类型的整数值,给出其操作数占用的字节数量,其中size_t是由标准库定义的类型。 int dice(0);cout << sizeof dice; //输出值为4,因为dice被声明为int类型,所以要占用4个字节char* pstr[] = {"Hello", "W... 阅读全文
posted @ 2013-11-10 21:01
jiangjiuwen
阅读(203)
评论(0)
推荐(0)

浙公网安备 33010602011771号