• 2022-06-08 问题

    完成下面类中成员函数的定义。#include &#91;iostream&#93; #include &#91;string&#93; 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 &#91;iostream&#93; #include &#91;string&#93; 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();}

  • 2022-06-17 问题

    下列正确的命令是 ( ) 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;

  • 2022-05-31 问题

    Is there ____ in today’s show?

    Is there ____ in today’s show?

  • 2022-06-18 问题

    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

  • 2021-04-14 问题

    Let’s go to the fashion show ___________ this evening.

    Let’s go to the fashion show ___________ this evening.

  • 2022-06-07 问题

    show one’s sympathy for____(穷人)

    show one’s sympathy for____(穷人)

  • 2021-04-14 问题

    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 _______.

  • 2021-04-14 问题

    __________ examples are given to show Chinese children's facility.

    __________ examples are given to show Chinese children's facility.

  • 2021-04-14 问题

    Difficulties can show _____ a person's best qualities.

    Difficulties can show _____ a person's best qualities.

  • 2021-04-14 问题

    The gallery’s show ____________ works painted after 1945.

    The gallery’s show ____________ works painted after 1945.

  • 1 2 3 4 5 6 7 8 9 10