摘要:        
1用于局部变量 C++中局部变量有三种: (1)auto:此关键词常常省略。auto type a 常常简写为type a。 如: int a=auto int a 存储在内存的栈中,只在此局部区域有定义,程序执行过此局部区域自动释放。 (2)static:有以下特点: (1)声明在局部区域,第一次    阅读全文
posted @ 2016-03-26 15:45
CoderCong
阅读(2545)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1修饰变量/指针 注意以下几种修饰的区别: (1)const int * a; (2)int const *a; (3)int * const b; (4)int const* const c; 其中前两种指a是一个指向const int变量的指针;(3)b是一个const型的指向int变量的指针;    阅读全文
posted @ 2016-03-26 11:36
CoderCong
阅读(1005)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号