SYMBOL.CPP
资源名称:C++100.rar [点击查看]
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:0k
源码类别:
Windows编程
开发平台:
Visual C++
- #include <iostream.h>
- #include <conio.h>
- #include <stdio.h>
- int NUMBER;
- int main(void)
- {
- int NUMBER;
- clrscr();
- NUMBER=1;
- printf("n-*-*-*- Before changing the NUMBER -*-*-*-");
- printf("nDISPLAY LOCAL NUMBER VALUE =%d",NUMBER);
- NUMBER=100;
- ::NUMBER=200;
- printf("nn-*-*-*- After changing the NUMBER -*-*-*-");
- printf("nDISPLAY LOCAL NUMBER VALUE =%d",NUMBER);
- printf("nDISPLAY GLOBAL NUMBER VALUE =%d",::NUMBER);
- getch();
- return 0;
- }