摘要: 6.25 和闺蜜出去玩 6.26 上午pta五道编程题,下午安装Java环境 6.27 上午pta五道编程题,下午去看牙医,晚上7:00-8:00学习Java的输入输出 6.28 上午pta五道编程题,下午Java简单编程,晚上去商场 6.29 上午pta五道编程题,下午学习Java,晚上刷综艺 6 阅读全文
posted @ 2023-07-01 17:12 记得关月亮 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; class ExamInfo { public: ExamInfo(string name,char grade) :name(name),mode(GRADE),grade(grade){} ExamInf 阅读全文
posted @ 2023-05-26 18:22 记得关月亮 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct Student{ int num; string name; char sex; int age; }; int main() { Student stu={97001,"Lin Lin",'F 阅读全文
posted @ 2023-05-25 16:25 记得关月亮 阅读(15) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; class Point { public: Point(int xx=0,int yy=0) { x=xx; y=yy; } Point(Point &p); int getX() { return x; } 阅读全文
posted @ 2023-05-24 18:41 记得关月亮 阅读(9) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; const float PI=3.141593; const float FENCE_PRICE=35; const float CONCRETE_PRICE=20; class Circle { publi 阅读全文
posted @ 2023-05-23 18:23 记得关月亮 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; class Clock { public: void settime(int newH=0,int newM=0,int newS=0); void showtime(); private: int hour 阅读全文
posted @ 2023-05-22 16:46 记得关月亮 阅读(8) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int getpower(int x, int y) { if (y < 0) return 0; else if (y == 0) return 1; else if (y == 1) return x; else 阅读全文
posted @ 2023-05-19 17:06 记得关月亮 阅读(12) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; double f(int n,int x) { if(n==0) return 1; else if(n==1) return x; else return ((2*n-1)*x*f(n-1,x)-(n-1) 阅读全文
posted @ 2023-05-18 16:56 记得关月亮 阅读(12) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int f(int n) { if(n==1||n==2) return 1; else return f(n-1)+f(n-2); } int main() { int a; cin>>a; cout<<f 阅读全文
posted @ 2023-05-17 10:23 记得关月亮 阅读(16) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int f(int n) { if(n==1) return 1; else return f(n-1)+n; } int main() { int a; cin>>a; cout<<f(a)<<endl; r 阅读全文
posted @ 2023-05-16 15:39 记得关月亮 阅读(11) 评论(0) 推荐(0)