- 博客(3)
- 收藏
- 关注
原创 第三次上机作业
#include<iostream>using namespace std;int gcd(int x, int y) { return y == 0 ? x : gcd(y, x%y);}class Fraction { friend void make_common(Fraction&a, Fraction&b); int m_fz = 0; int m_fm = 1;public: Fraction(int a, int b) :m_fz(a), m_f
2020-12-26 10:32:23
115
15
原创 第二次上机作业前三题
#include<iostream>using namespace std;int main() { int arr[3][3] = { 2,9,3,4,7,5,0,1,8 }; int x, y, sum1 = 0, sum2 = 0, sum3 = 0; for (x = 0; x < 3; ++x) { for (y = 0; y < 3; ++y) { if (x <= y) { sum1 += arr[x][y]; } if
2020-12-10 22:53:55
95
原创 第一次上机作业
#includeusing namespace std;/*int main(){int a, b, c;cin >> a >> b >> c;if (a > b && b > c) {cout << a <<" “<< b <<” “<< c;}if (a > c && c > b) {cout << a <<
2020-11-13 11:26:06
107
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人