上一页 1 2 3 4 5 6 ··· 54 下一页
摘要: a=int(input("输入第一个数:"))b=int(input("输入第二个数:"))c=int(input("输入第三个数:")) if a>b: m=aelse: m=bif m>c: print("最大数是:",m)else: print("最大数是:",c) 阅读全文
posted @ 2023-03-14 22:36 bobo哥 阅读(677) 评论(0) 推荐(0) 编辑
摘要: #问题:数组中找出最大值和最小值list=[]print("输入数组元素的个数:")num=int(input())for i in range(num): a=int(input("请输入第"+str(i+1)+"个整数:")) list.append(a)max=list[0]min=list[ 阅读全文
posted @ 2023-03-14 22:28 bobo哥 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-12-02 09:18 bobo哥 阅读(39) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std; class myComplex{private: double real,imag;public: myComplex(); myComplex(double r,double i); void outCom(); my 阅读全文
posted @ 2022-11-19 20:37 bobo哥 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <cmath>using namespace std; class Point{private: double x,y; friend class Line;public: Point(double i=0,double j=0) { x=i; 阅读全文
posted @ 2022-11-19 19:17 bobo哥 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std; class myComplex //复数类{private: double real,imag;public: myComplex(); myComplex(double r,double i); friend clas 阅读全文
posted @ 2022-11-19 18:48 bobo哥 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 源程序: #include <iostream>using namespace std;class constClass{private: const int conMbr; int Mbr;public: constClass():conMbr(0),Mbr(100){}; constClass( 阅读全文
posted @ 2022-11-12 20:43 bobo哥 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-10 17:13 bobo哥 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 创建数据库: create database tongchenggongsi; 1、 查询车间名称和电话; 2、 查询属于台灯厂的车间; 3、 查询生产“十二枝大吊灯”的工人; 4、 查询储存在“东莞市东城区”的产品名称; 5、 哪些产品没存在CK03中; 6、 查询生产产品最多的工人; 7、 查询 阅读全文
posted @ 2022-10-26 11:36 bobo哥 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-21 11:42 bobo哥 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 54 下一页