//2012年9月25日17:26:44
#include <iostream>
using namespace std;
int main()
{
const int a = 1;
cout<<a<<endl;
cout<<sizeof a;//使用sizeof得到a的长度
cout<<endl;
return 0;
}
/*
在VC++6.0中运行的结果是:
--------------------
1
4
Press any key to continue
--------------------
*/
7_常变量.cpp
最新推荐文章于 2020-11-14 21:17:02 发布