摘要: 源程序: #include <iostream>using namespace std; class toy{private: int num,price;public: toy(int q,int p) { num=q; price=p; } int get_num() { return num; 阅读全文
posted @ 2022-03-06 11:53 bobo哥 阅读(39) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std;int time=0,end=0;class Test{public: Test() { if(time==0) //程序填空 cout<<"欢迎使用测试程序!"<<endl; time=time+1; } ~T 阅读全文
posted @ 2022-03-06 11:45 bobo哥 阅读(30) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class Person{public: virtual void disp() { cout<<"Person "; }};class Address:public Person //程序填空{public: 阅读全文
posted @ 2022-03-06 11:17 bobo哥 阅读(38) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; void fun(int *pa,int n); void SumArry(int *pa,int n){ for(int i=0;i<n-1;i++) *(pa+9)+=*(pa+i); //程序填空} vo 阅读全文
posted @ 2022-03-06 11:03 bobo哥 阅读(34) 评论(0) 推荐(0)