- 博客(4)
- 收藏
- 关注
原创 进制转换——十进制转换R进制
输入两个数。 第一个数代表要进行转换的十进制数。第二个代表要转换的进制R #include<iostream> using namespace std; char arr[105];//因为进制超过10需要用字母来表示,所以用char数组 int main(){ int num,R,n,now; cin>>num>>R; if(num<0){ cout<<"-"; num=-num.
2022-04-04 06:00:00
871
原创 矩阵的旋转
//矩阵旋转 #include<iostream> using namespace std; //在主函数外开辟数组 int arr[205][205]; int main(){ //输入数组的行数n,列数m,分别并输入数组元素 int n,m; cin>>n>>m; for(int i = 0;i < n; i++){ for(int j = 0;j < m; j++){ cin&.
2022-04-01 06:00:00
214
原创 定义比赛类,可以输入、修改、查看比赛结果
#include<iostream> using namespace std; void Show() { cout << "**********1.输入 3 场比赛得分**********" << endl; cout << "**********2.修改某场比赛得分**********" << endl; cout << "**********3.查询某场比赛得分**********" << e.
2021-12-13 09:04:33
878
原创 打印 菱形
#include<iostream> using namespace std; int main() { int n; cin >> n; if (n % 2 == 1) { int c = (n - 1) / 2; int c1 = c; int c2 = n - c; int k = 1; int n1 = n; for ( int a = 1; a ...
2021-11-13 23:19:29
773
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅