蒲公英110

2016年8月22日

作用域解析运算符

摘要: ::的作用非常简单,就是当局部变量和全局变量名字重叠的时候,指定某变量一定是来自全局变量。 #include<iostream> using namespace std;void display();int result = 100;int main(){ int result = 10; if ( 阅读全文

posted @ 2016-08-22 16:15 蒲公英110 阅读(532) 评论(0) 推荐(0) 编辑

导航