您的位置:首页 > 其它

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  string include