
作业
Nidhoggking
这个作者很懒,什么都没留下…
展开
-
2020-12-19
#include<iostream> using namespace std; class Point { double m_x = 0, m_y = 0; public: Point(double x = 0, double y = 0) : m_x(x), m_y(y) { cout << "Constructor of Point" << endl; } Point(const Point &p) :m_x(p.m_x), m_y(p.m_y)原创 2020-12-19 13:37:39 · 105 阅读 · 1 评论 -
作业2
在这里插入代码片 ```#include<iostream> #include<vector> using namespace std; int main() { int n,m,c,a; cin >> n; a = n; vector<int>v; for (int i = 1;i <= n;i++) { v.push_back(i); } m = 1+rand() % n - 1; c = m; for (;n > 1;n原创 2020-12-08 20:13:43 · 196 阅读 · 0 评论 -
2020-11-13
#include <iostream> using namespace std; int main() { int a,b,c,d; cin >> a>> b>>c; if (a < b) { d= b; b = a; a = d; } if (b < c) { d = c; c = b; b = d; } if (a < b) { d = b; b = a; a = d; } cout.原创 2020-11-13 22:31:22 · 96 阅读 · 0 评论 -
2020-11-13
#include<iostream> #include<cmath> using namespace std; int main() { int a, b, c,d; a = 100; b = 2; d = 0; while (b <= sqrt(a)) { c = a % b; if (c == 0) { a += 1; b = 1; } b += 1; if (b > sqrt(a)) { cout << .原创 2020-11-13 22:23:59 · 92 阅读 · 0 评论