上一页 1 ··· 15 16 17 18 19
摘要: 1. #include<iostream>using namespace std; class Shape{public:virtual double area() const=0;}; class Circle:public Shape{public:Circle(double r):radius 阅读全文
posted @ 2023-04-24 22:15 Verneyyx 阅读(25) 评论(0) 推荐(0)
摘要: 1. #include <bits/stdc++.h>using namespace std; string a, s;int b[1005], t, c[1005]; void division() { for (int i = t - 1; i >= 0; i--) { if (b[i] % 2 阅读全文
posted @ 2023-04-23 20:22 Verneyyx 阅读(15) 评论(0) 推荐(0)
摘要: 1. #include<iostream>using namespace std;#define PI 3.1415926class Shape{ public: virtual double area()=0;}; class Circle:public Shape{private:double 阅读全文
posted @ 2023-04-22 21:13 Verneyyx 阅读(21) 评论(0) 推荐(0)
摘要: 1. class Car:public Vehicle{public:Car(string no,int guest,int weight):Vehicle(no){m_no=no;m_guest=guest;m_weight=weight;}virtual int fee(){return (m_ 阅读全文
posted @ 2023-04-21 12:38 Verneyyx 阅读(29) 评论(0) 推荐(0)
摘要: 1. #include<iostream>using namespace std; class Shape{ public: virtual double area() const=0;}; class Circle:public Shape{ public: Circle(double r):ra 阅读全文
posted @ 2023-04-18 22:53 Verneyyx 阅读(19) 评论(0) 推荐(0)
摘要: 1. #include<bits/stdc++.h>using namespace std;typedef long long ll;class Vehicle{protected: string NO;public: Vehicle(string str){ NO=str; } virtual v 阅读全文
posted @ 2023-04-17 20:25 Verneyyx 阅读(21) 评论(0) 推荐(0)
摘要: 1. #include "iostream"using namespace std;class Fu{public: double shi; double xv; void set() { cin>>this->shi; cin>>this->xv; } double fun1() { return 阅读全文
posted @ 2023-04-16 21:49 Verneyyx 阅读(16) 评论(0) 推荐(0)
摘要: 1. #include <bits/stdc++.h>using namespace std;class number{ int fz,fm; friend number operator+(number &n1,number &n2);public: number(int a=0,int b=1) 阅读全文
posted @ 2023-04-14 20:23 Verneyyx 阅读(18) 评论(0) 推荐(0)
摘要: 1. #include <bits/stdc++.h>using namespace std;class number{ int fz,fm; friend number operator+(number &n1,number &n2);public: number(int a=0,int b=1) 阅读全文
posted @ 2023-04-12 20:20 Verneyyx 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19