C++基础知识复习--字符串

String的使用:

#include
#include
using namespace std;
int main()
{
	string str;
	str = "dadada";
	cout<<"求字符串长度:"<

char的使用:

计算字符串长度str[length];


你可能感兴趣的:(C和C++)