// 28创建string类
/*#include <iostream>
using namespace std;
class String
{
public:
	String();
	int getlen(){ return len;}
private:
	int len;
	char *str;
};
//创建一个空的str变量
String::String()
{
    len = 0;
	str = new char[1];
	str[0] = '\0';
};
int main()
{
	String str;
	cout<<str.getlen()<<endl;
    return 0;
}*/

  

相关文章:

  • 2022-01-03
  • 2022-01-17
  • 2021-07-21
  • 2021-05-25
  • 2021-04-18
  • 2021-06-26
  • 2021-10-09
  • 2021-10-10
猜你喜欢
  • 2021-12-27
  • 2021-10-14
  • 2021-11-17
  • 2021-11-14
  • 2021-05-16
  • 2021-08-21
  • 2022-02-05
相关资源
相似解决方案