#include <iostream>
#include<string>
using namespace std;
int main() {
string a;
cout << a.empty() << endl;
cout << a << endl;
cout << a.length() << endl;
a.append("abc");
cout << a << endl;
string b("bcde");
string c = "123";
b.swap(c);
cout << "b = " << b << endl;
cout << "c = " << c << endl;
cout << a.compare(b) << endl;
cout << a.empty() << endl;
return 0;
}
博客涉及C++开发语言与算法相关内容,但具体信息缺失。C++是重要开发语言,算法在信息技术中至关重要,二者结合可用于多种开发场景。

被折叠的 条评论
为什么被折叠?



