#include <iostream>
#include <string>
int main ()
{
	const int bufSize = 512; //缓冲区的大小 buffer size ,这里的bufSize永远是常量512,要是在其它地方声明必须在const前面加上extern再在下边的表示可以省去不写,为extern const int bufSize = 512; 
	const std::string shi = "xiao cui";
	const int i = 2, j = 4;
for(int index = 0; index != bufSize; ++index)
{
	std::cout << index << std::endl;
}
std::cout << shi << std::endl;
std::cout << j << std::endl;
	return 0;
}const限定符最基本的
最新推荐文章于 2024-10-22 15:16:08 发布
          
          
       
          
       
       
                   
                   
                   
                   
                             
       
           
                 
                 
                 
                 
                 
                
               
                 
                 
                 
                 
                
               
                 
                 扫一扫
扫一扫
                     
              
             
                   826
					826
					
 被折叠的  条评论
		 为什么被折叠?
被折叠的  条评论
		 为什么被折叠?
		 
		  到【灌水乐园】发言
到【灌水乐园】发言                                
		 
		 
    
   
    
   
             
            


 
            