- 博客(3)
- 收藏
- 关注
原创 2020-12-25
第一题#include<iostream>using namespace std;class Fraction { int m_numerator = 0; int m_denominator = 1;public: Fraction(int above = 0, int below = 1) : m_numerator(above), m_denominator(below) { cout << "Constructor called" << en
2020-12-25 16:14:33 66
原创 2020-12-11
第二次上机作业第一题#include<iostream>using namespace std;int main() { int a[6][1]; int m = 0, n = 0, t; while (m < 6) { cin >> a[m][0]; ++m; }//输入一个数组 m = 0; while (m < 6) { t = a[0][0]; if (a[m][0] >= t) { t = a[m][0];
2020-12-11 21:01:25 190
原创 第一次上机作业
第一题#include <iostream>int main() { double a, b, c, t; std::cin >> a; std::cin >> b; std::cin >> c; if (a >= b) { if (b >= c) {} else { if (a >= c) { t = c; c = b; b = t; } else { t = a;
2020-11-13 12:40:49 62
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人