#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 类型的用法
最新推荐文章于 2021-09-27 07:54:18 发布