摘要:        
1.c++ 有两种风格的字符串形式 c风格字符串 定义及初始化 char a[]={'h','e','l','l','o','\0'} 或者 char a[]="hello"; //C++ 编译器会在初始化数组时,自动把 '\0' 放在字符串的末尾 输出:cout<<a; 或者 for(int i=    阅读全文
posted @ 2018-05-03 14:08
青岑
阅读(27539)
评论(1)
推荐(0)
        
            
        
        
摘要:        
1 利用stringstream 添加头文件 #include<sstream> 数字转字符串 #include <string> #include <sstream> int main(){ double a = 123.32; string res; stringstream ss; 定义流ss    阅读全文
posted @ 2018-05-03 10:34
青岑
阅读(104654)
评论(5)
推荐(4)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号