摘要: 汇编语言 设有一个数组存放学生的成绩(0100),编制一个子程序统计059分,60~69分, 70~79分, 80~89分,90~100分的人数,并分别存放到scoreE, scoreD, scoreC, scoreB, scoreA单元中,编写一~个主程序与之配合使用。 源程序: stack se 阅读全文
posted @ 2024-03-28 22:36 bobo哥 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 源程序: height = 80s = height # 球经过的全部路径长度t = str(height) + "+"for i in range(9): s = s + height t = t + str(height) + "+" height = height / 2print(t.str 阅读全文
posted @ 2024-03-28 09:59 bobo哥 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 源程序: m = 1000n = 1000while True: if m % 7 == 3 and m % 5 == 2 and m % 3 == 1: print(m) break if n % 7 == 3 and n % 5 == 2 and n % 3 == 1: print(n) bre 阅读全文
posted @ 2024-03-28 09:31 bobo哥 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 源程序: day = 10while True: m = day flag = True for i in range(9): if m % 2 == 0: m = m - m//2 - 1 else: flag = False break if m == 1 and flag: break day 阅读全文
posted @ 2024-03-28 09:15 bobo哥 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 源程序: print("请输入一串字符(包含大小写字母、数字和其他字符):")str1 = input()upp_num = 0low_num = 0digit = 0other = 0for i in str1: if "a" <= i <= "z": low_num += 1 elif "A" 阅读全文
posted @ 2024-03-28 09:00 bobo哥 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 源代码: #include <stdio.h>#define N 5 typedef struct Sqlist{ int num; char name[8];}Sqlist; int search(Sqlist R[],int n,int K){ int i; for(i=0;i<n;i++) i 阅读全文
posted @ 2023-12-11 20:50 bobo哥 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 软件:centOS 7和VMware 17 1、安装centOS 2、查看机器名:hostnamectl 3、修改机器名:hostnamectl set-hostname Controller_1 将机器名修改为Controller_1 4、添加IP地址 首先,查看虚拟机菜单:“编辑” - “虚拟网 阅读全文
posted @ 2023-10-30 21:46 bobo哥 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 源程序: #include <stdio.h>#include <iostream>#include <stdlib.h>using namespace std;int main(){ char* p; char a[80]; p = a; int i = 0; while((*p=getchar( 阅读全文
posted @ 2023-10-20 15:20 bobo哥 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-09-18 15:45 bobo哥 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 软件:myeclipse8.5 项目名称:MVC Sample8_1.jsp是输入三解形三条边的界面: showResult.jsp是输入面积的界面: 程序如下: Sample8_1.jsp <%@ page contentType="text/html;charset=GB2312" %> <HT 阅读全文
posted @ 2023-05-18 11:17 bobo哥 阅读(151) 评论(0) 推荐(0) 编辑