完成下面类中成员函数的定义。#include [iostream] #include [string] using namespace std; class str {private: char *st; public: str(char *a) {set(a); } str & operator=(str &a) {delete st; set(a.st); return *this; } void show(){cout<<st<<endl;} ~str(){delete st;} void set(char *s)//初始化st {_____ strcpy(st,s); } }; void main() {str s1("he"),s2("she"); s1.show(),s2.show(); s2=s1; s1.show(),s2.show();}
完成下面类中成员函数的定义。#include [iostream] #include [string] using namespace std; class str {private: char *st; public: str(char *a) {set(a); } str & operator=(str &a) {delete st; set(a.st); return *this; } void show(){cout<<st<<endl;} ~str(){delete st;} void set(char *s)//初始化st {_____ strcpy(st,s); } }; void main() {str s1("he"),s2("she"); s1.show(),s2.show(); s2=s1; s1.show(),s2.show();}
下列正确的命令是 ( ) A: show tables; B: show colum错s; C: show colum错s from customers; D: show databases;
下列正确的命令是 ( ) A: show tables; B: show colum错s; C: show colum错s from customers; D: show databases;
Is there ____ in today’s show?
Is there ____ in today’s show?
It's time for you ________ your team spirit. A: to show B: shows C: show D: showing
It's time for you ________ your team spirit. A: to show B: shows C: show D: showing
Let’s go to the fashion show ___________ this evening.
Let’s go to the fashion show ___________ this evening.
show one’s sympathy for____(穷人)
show one’s sympathy for____(穷人)
What is the cost of printing a message in the newspaper to show one’s love? It's _______.
What is the cost of printing a message in the newspaper to show one’s love? It's _______.
__________ examples are given to show Chinese children's facility.
__________ examples are given to show Chinese children's facility.
Difficulties can show _____ a person's best qualities.
Difficulties can show _____ a person's best qualities.
The gallery’s show ____________ works painted after 1945.
The gallery’s show ____________ works painted after 1945.