自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

转载 webstorm开发微信小程序代码提醒

File---settings点击出来以下页面1.首先FileType下Cascading Style Sheet 添加*.wxss2.FileType下HTML添加*.wxml将其中的wecharCode.jar下载下来,然后在webStorm的 File -> import settings 中导入即可下载地址:GitHub - miaozhang9/wecharCodejar: WebStorm下配置微信小程序代码提醒jar...

2022-03-05 23:54:54 680 1

原创 C++冒泡排序从小到大输出数组元素

#include<iostream>using namespace std;int main(){ int arr[9] = { 4,2,8,0,5,7,1,3,9 }; cout << "排序前:" << endl; for (int i = 0; i < 9; i++) { cout << arr[i] << " "; } cout << endl; ...

2021-10-17 17:27:50 3414

原创 C++求数组元素逆置

#include<iostream>using namespace std;int main(){ int arr[5] = { 1,2,3,4,5 }; cout << "数组元素逆置前:" << endl; for (int i = 0; i < 5; i++) { cout << arr[i] << endl; } int start = 0; int end...

2021-10-17 17:02:30 330

原创 C++演示逢七必过(1~100)

#include<iostream>using namespace std;int main(){ int a = 0; int b = 0; for (int n = 1; n <= 100; n++) { a = n % 10; b = n / 10; if (n % 7 == 0 || a == 7 || b == 7) cout << "过" << ...

2021-10-16 01:04:19 3257

原创 C++求所有水仙花数

#include<iostream>using namespace std;int main(){ int num = 10; do { int a = 0; int b = 0; int c = 0; a = num % 10; b = num / 10 % 10; c = num / 100; if (a*a*a+b*b*b+c*c*c==num)...

2021-10-16 00:42:45 372

原创 跳过B站充电鸣谢

// 按F12,点击console,复制代码到里面,按回车就行$('video')[0].onended=()=>{$('.bilibili-player-video-btn-next').click()}

2021-10-15 21:19:32 5650 4

原创 C语言求1/1-1/2+1/3-1/4+...-1/100

#include <stdio.h>#include<math.h>int main(){ int i = 0; double sum = 0.0; int flag = 1; for (i = 1; i <= 100; i++) { sum += flag * 1.0 / i; flag = -flag; } printf("%lf\n", sum); return 0;}...

2021-09-30 00:09:49 1363

原创 C语言求100-200之间的质数

#include <stdio.h>#include<math.h>int main(){ int i = 0; int count = 0; for (i = 100; i <= 200; i++) { int j = 0; for (j = 2; j <= sqrt(i); j++) { if (i%j == 0) break;...

2021-09-29 23:06:16 1311

原创 C语言输出1000-2000之间的闰年

#include <stdio.h>int main(){ int year = 0; for (year = 1000; year <= 2000; year++) { if (year % 4 == 0 && year % 100 != 0) printf("%d ", year); else if (year % 400 == 0) printf("%d ", ...

2021-09-29 14:10:21 1135

原创 C语言求两个数的最大公因数

#include <stdio.h>int main(){ int m = 0; int n = 0; int r = 0; scanf("%d%d", &m, &n); while (m%n) { r = m % n; m = n; n = r; } printf("%d\n", n); return 0;}...

2021-09-29 00:30:11 659

原创 C语言输出1-100中3的倍数

#include <stdio.h>int main(){ for (int m = 1; m <= 100; m++) { if (m % 3 == 0) printf("%d ", m); } return 0;}

2021-09-28 23:13:11 7947 2

原创 C语言从大到小排列三个整数

#include <stdio.h>int main(){ int a = 0; int b = 0; int c = 0; printf("请输入三个整数:\n"); scanf("%d%d%d", &a, &b, &c); if (a < b) { int tmp = a; a = b; b = tmp; } if (a < c)...

2021-09-27 23:48:00 2584

原创 C语言求1!+2!+3!

#include <stdio.h>int main(){ int i = 0; int n = 0; int ret = 1; int sum = 0; for (n = 1; n <= 3; n++) { ret = 1; for (i = 1; i <= n; i++) { ret = ret * i; } sum = su...

2021-09-25 23:41:28 3179

原创 C语言求一个数的阶乘

#include<stdio.h>int main(){ int n = 0; int j = 0; printf("请输入一个整数:\n"); scanf("%d", &n); j = n; while (j != 1) { j--; n = n * j; } printf("该整数的阶乘为:%d", n); return 0;}...

2021-09-21 18:29:47 3528 2

calculator_zjl.zip

利用html+css+js制作网页版简易计算器

2021-11-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除