class String {
....
};
Other part of signature and implementation is completed by you.
[名词解释] digital signature数字签名
[试题]已知String类定义如下:class String{public:String(const char *str = NULL); // 通用构造函数String(const String &another); // 拷贝构造函数~ String(); // 析构函数String & perater =(const String &rhs); // 赋值函数private:char *m_data; // 用于保存字符串};尝试写出类的成员函数实现。
[主观题]String s = new String(xyz);创建了几个String Object
[主观题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?
[试题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?
[主观题]7 .string = null 和string = “”的区别
[单选题]下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为A.falseB.trueC.1D.0
[单选题]电子签名(electronic signature)不能提供的安全性能是(44)。(44)A.电子文件的保密性B.电子文件的完整性C.鉴别文件签署者的身份D.文件签署者确认电子文件的内容
[试题]在C#中,string str = null 与 string str = “” 请尽量使用文字或图象说明其中的区别。
[主观题]已知类 String 的原型为class string{public:string(const char *str=null);//普通构造函数string(const string &other);//拷贝构造函数---string(void);string &operate=(const string &other);//赋值函数private:char * m-data;//用于保存字符串};请编写 string 的上述4 个函数