摘要:        
1.输出进制 cout.setf(std::ios_base::dec);//设为十进制 cout << 16 << endl;//打印十进制16 cout.setf(std::ios_base::hex);//设为十六进制 cout << 16 << endl;//打印10,没有0x前缀 cout    阅读全文
posted @ 2020-05-06 09:31
八转达人
阅读(414)
评论(0)
推荐(0)
        
            
        
        
摘要:        
C++官网:https://isocpp.org/ C++参考:https://zh.cppreference.com 1.列表初始化:用花括号初始化变量 特点:作用于内置类型的变量时,如果有丢失信息的风险,编译报错 int n1 = 10;	//通常写法 int n2 = { 10 };//列表初    阅读全文
posted @ 2020-05-06 06:51
八转达人
阅读(176)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号