作品
昼夜&时差
我正当旭日东升 你却已夕阳西下
展开
-
C++实现计算器
#include <iostream>using namespace std;int main(){ int num1,num2; char calculate; cout << "*-*-*-* 算 术 计 算 器 *-*-*-*" << endl; cout << "[1.加/2.减/3.乘/4.除/5.余]:"; cin >> (calculate); if(calculate...原创 2022-05-16 20:53:37 · 460 阅读 · 0 评论 -
C++输入输出
#include <iostream>using namespace std;int main(){ char name[20]; //姓名 int age; //年龄 char sex[2]; //性别 cout << "输入姓名:"; cin >> name; //scanf("%s",&name); cout << "输入年龄:"; cin >> age; //sc...原创 2022-05-16 11:07:07 · 353 阅读 · 0 评论 -
C语言关键字、运算符、控制语句
原创 2022-05-11 16:32:26 · 209 阅读 · 0 评论 -
二叉树的遍历
原创 2022-04-20 21:20:45 · 339 阅读 · 0 评论 -
VNC可实现屏幕共享
第一步第二歩第三步第四步第五步第六步第七步原创 2022-04-20 20:03:56 · 2685 阅读 · 2 评论 -
shell脚本猜大小
num1="33"num2="="num="0"while [ $num -ne $num1 ]doecho "请输入一个整数值"read num if [ $num -gt $num1 ] then echo "猜大了$num" elif [ $num -lt $num1 ] then echo "猜小了$num" elif [ $num = $num2 ] then break fido...原创 2022-04-19 15:44:15 · 128 阅读 · 0 评论 -
C语言九九乘法表
#include <stdio.h>int main(){ int c,a = 1,b = 1; while(a <= 9) { b = 1; while(b <= a) { c = a * b; printf("%d*%d=%d\t",b,a,c); b++; } a++; printf...原创 2022-04-19 15:40:07 · 791 阅读 · 0 评论 -
和 差 乘积 商
#include <stdio.h>int main(){ int a,b; printf("请输入两个数:"); scanf("%d %d",&a,&b); printf("和:%d 差:%d 乘积:%d 商:%d\n",a+b,a-b,a*b,a/b); return 0;}原创 2022-04-19 15:31:22 · 124 阅读 · 0 评论 -
if嵌套比大小
#include <stdio.h>int main(){ int a,b,c; printf("输入第一个值:"); scanf("%d",&a); if(a > 0) { printf("输入第二个值:"); scanf("%d",&b); if(b > 0) { printf("输入第三个值:"); sca...原创 2022-04-19 15:26:55 · 347 阅读 · 0 评论 -
用户登录系统
#include <stdio.h>int main(){ int canager_id,student_id; int canager_code,student_code; int select; //选择登陆 int zhanghao_can = 599684538; int mima_can = 594088;circulation: printf("---------------欢迎使用登录系统---------------\...原创 2022-04-19 15:06:58 · 299 阅读 · 0 评论 -
计算100元换算成1元、5元、10元零钱有多少种可能?
#include <stdio.h>int main(){ int i,j,k; int total = 0; printf("-----100块钱有多少中可能-----\n"); for(i = 0;i <= 100;i++) { for(j = 0;j <= 20;j++) { for(k = 0;k <= 10;k++) { ...原创 2022-03-30 20:40:06 · 1604 阅读 · 0 评论