String 类型的用法
2012-07-31 23:40
169 查看
#include "stdafx.h" #include "windows.h" #include "iostream" #include "stdlib.h" #include "climits" #include "string" using namespace std; int main(int argc, char* argv[]) { string ch1="asdasd",ch2="qweqwe",ch3; ch3=ch1+ch2; //strcat ch1=ch2; //strcpy int n = ch1.size(); //strlen system("pause"); return 0; }
相关文章推荐
- C#学习日记15----引用类型 之 string类型用法总结
- Js中String类型方法用法大全
- C++标准库类型string用法小结
- string和各内置类型的互换方法(stringstream的一种用法)
- JAVA字符串类型-String.format()函数用法
- Python3中内置类型bytes和str用法及byte和string之间各种编码转换
- string类型常见用法
- 【转载】标准c++中的string类型的用法
- String类型null和“”的用法
- Python3中内置类型bytes和str用法及byte和string之间各种编码转换
- Python3中内置类型bytes和str用法及byte和string之间各种编码转换
- stringstream的重要用法(数据类型转换)
- 一句话搞定string类型大小写转换之transform用法
- C# String Tips (C#String 类型的相关用法 收集)
- Delphi中string数据类型的特殊用法(获取string字符串的单个字符)
- 标准C++中string类型的用法总结
- CString用法,转String,转int类型
- 一句话搞定string类型大小写转换之transform用法
- 标准C++中string类型的用法总结
- C++ double转string类型以及MFC控件简单用法