会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
atrue
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
2023年4月15日
进制转换
摘要: #include <bits/stdc++.h> using namespace std; int convert2ten(int a,int num)//将a进制转换为十进制{ int b=0; int t; int i=0; while(num!=0) { t=num%10; num=num/1
阅读全文
posted @ 2023-04-15 11:20 a_true
阅读(12)
评论(0)
推荐(0)
2023年4月13日
百钱百鸡问题(改进算法)
摘要: #include<iostream>using namespace std;int main(){ int cock, hen, chicken; for (cock = 0; cock <= 20; cock++) { for (hen = 0; hen <= 33; hen++) { chick
阅读全文
posted @ 2023-04-13 13:35 a_true
阅读(21)
评论(0)
推荐(0)
2023年4月12日
7-1 复数类的运算
摘要: #include<iostream>using namespace std; class Complex{public: Complex(double r = 0, double i = 0) :real(r), imag(i) { } Complex operator+(Complex& c2)
阅读全文
posted @ 2023-04-12 12:43 a_true
阅读(47)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
公告