2.4-2
来源:互联网 发布:js运动小球重力 编辑:程序博客网 时间:2024/04/30 01:55
first_head.h
--------------------------------
#include<iostream>
using namespace std;
int a=10;//非const变量默认为extern
//const int a=10;//error:在全局作用域声明的const变量是定义该对象的文件的局部变量
此文件只存在于那个文件中,不能被其他文件访问
extern const int b=10;//指定const变量为extern,就可以在整个程序中访问const对象
first.cpp
--------------------------------
int main()
{
extern int a;
cout<<a<<endl; //非const变量定义在一个文件中,可在另一个文件中使用这个变量
cout<<b<<endl;
system("pause");
}
- 2.4-2
- 2.4.2 存储检查
- USCAO 2.4.2
- 2.4.2 Numconv
- 2.4.2(extra)
- 2.4.2 Always语句
- 2.4.2节练习
- Ambari 2.4.2 汉化
- 2.4.2指针复习
- ElasticSearch 2.4.2
- fckeditor配置详解2.4.2
- chapter 2 section 2.4 Overfencing
- 2.4.2 使用救援光盘
- Chapter 2 Linked Lists - 2.4
- OpenCV 2.4.2 is out
- VS2012 x64 OpenCV 2.4.2
- OpenCV 2.4.2: Undefined References
- OpenCV-2.4.2 安装三步曲
- s3c2440启动文件详细分析
- 2.3.5
- 2.3.6
- Android Unparsed aapt error(s)! Check the console for output错误修改
- 测量C#代码的运行时间
- 2.4-2
- Drawable、Bitmap、byte[]之间的转换
- 上传图片并保存到服务器上之后,如何得到该图片服务器路径(http://~)
- 2.5-1
- pro android 2 下载地址
- jpg文件格式分析
- Android 中关于Cursor类的介绍
- zoj 1649(hdu 1242)Rescue(广搜)
- 英文学习,诗歌学习、——齊邦媛 。《巨流河》