摘要:
源程序: #include <iostream>using namespace std; class point{private: float x, y;public: void f1(float a, float b) { x = a; y = b; } point() { x = 0; y = 阅读全文
posted @ 2020-02-06 19:28
bobo哥
阅读(173)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std;class point{private: float x;public: void f(float a) { x = a; } void f() { x = 0; } friend float max(point 阅读全文
posted @ 2020-02-06 19:20
bobo哥
阅读(128)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>#define PI 3.1415926using namespace std; class Cylinder{private: double r, h;public: Cylinder(double rr, double hh) { r = rr; 阅读全文
posted @ 2020-02-06 18:59
bobo哥
阅读(132)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>#include <math.h>using namespace std;class Point{private: float x, y;public: Point(float a, float b); float getX(); float getY 阅读全文
posted @ 2020-02-06 18:35
bobo哥
阅读(120)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>#include <cmath>using namespace std; class Point{private: double x, y;public: Point(double a, double b) { x = a; y = b; } doub 阅读全文
posted @ 2020-02-06 16:27
bobo哥
阅读(152)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>#include <string>using namespace std; class Course{private: string coursename; int credit; int xueshi; string type; string pro 阅读全文
posted @ 2020-02-06 15:48
bobo哥
阅读(194)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std;class MyClassType1{private: int x, y;public: int getx() { return x; } int gety(); void setx(int x0) { x = 阅读全文
posted @ 2020-02-06 15:10
bobo哥
阅读(160)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std;class Test{ int a, b; int getmin() { return (a < b) ? a : b; }public: int c; void setValue(int x1, int x2, 阅读全文
posted @ 2020-02-06 14:58
bobo哥
阅读(135)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std; int main(){ int *p1; int **p2 = &p1; int b = 20; p1 = &b; cout << **p2 << endl; system("pause"); return 1 阅读全文
posted @ 2020-02-06 14:53
bobo哥
阅读(115)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std;class A{public: int a, b;private: int c, d;public: int getc();};int A::getc(){ return c;}int main(){ A one 阅读全文
posted @ 2020-02-06 14:50
bobo哥
阅读(147)
评论(0)
推荐(0)

浙公网安备 33010602011771号