自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Mac npm权限问题npm ERR! code EACCES

npm ERR! code EACCES

2023-03-13 16:36:19 373

原创 Vue入门1——Vue和Element plus的安装

Mac电脑vue的环境搭建和第一个vue项目

2023-03-13 15:33:48 202

原创 冒泡排序法(C++)

冒泡排序法(C++)将数组a[9]={4,2,8,0,5,7,1,3,9}利用冒泡排序法进行排序#include<iostream>using namespace std;int main(){ int temp; int a[9] = { 4,2,8,0,5,7,1,3,9 }; for (int i = 1; i <= 8; i++) { for (int j = 0; j <=9 - i; j++) { if (a[j + 1] > a[

2020-08-22 15:19:30 183

原创 数组元素逆置(C++)

声明一个5个元素的数组,并且将元素逆置.(如原数组元素为:1,3,2,5,4;逆置后输出结果为:4,5,2,3,1);#include<iostream>using namespace std;int main(){ int temp; int a[5] = { 1,3,2,5,4 }; int start = 0; int end = sizeof(a) / sizeof(a[0]) - 1; for (int i = 0; i < 5; i++) { if

2020-08-22 14:42:54 2402 1

原创 敲桌子(C++)

敲桌子(C++)从1开始到数字100,如果数字个位含有7,或者数字十位含有7,或者是7的倍数,我们打印输出敲桌子,其余数字直接打印输出#include<iostream>using namespace std;int main(){ for (int i = 1; i < 100; i++) { if (i % 10 == 7 || i % 7 == 0 || i /10 == 7) { cout << "敲桌子" << en

2020-08-21 20:10:40 785

原创 输出所有三位数中的水仙花数(C++)

水仙花数是指一个3位数,它的每个位上的数字的3次幂之和等于他本身的数如:1^3 + 5^3 + 3^3 = 153#include<iostream>using namespace std;int main(){ int i; int b, c, d; i = 100; do { b = i % 10;//个位数 c = (i/10)%10;//十位数 d = i / 100;//百位数 if (b*b*b + c*c*c + d*d*d == i) {

2020-08-21 19:55:18 4939

原创 用C++编写一个猜数字游戏

用C++编写一个猜数字游戏系统随机生成一个1到100之间的数字,玩家进行猜测,如果猜错,提示玩家数字过大或过小,如果猜对恭喜玩家胜利,并且推出游戏。#include<iostream>using namespace std;int main(){ int num = rand() % 100 + 1; int val; cin >> val; while (val != num) { if (val > num) { cout <&

2020-08-21 19:28:31 1854 1

原创 打印输出九九乘法表(Java)

打印输出九九乘法表(Java)public class test{ public static void main(String[] args) { for(int i = 1;i < 10;i++) { for(int j = 1;j < i;j++) { System.out.print(j +"*"+ i + " = "+ j*i+' '); } System.out.println(); } }}}}}[外链图片转

2020-08-21 18:08:45 573

原创 C#入门(详细)

C#Hello C#using System;namespace Program{ class helloworld { public static void Main(string[] args) { Console.WriteLine("Hello C#"); Console.ReadLine(); } }}[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来

2020-08-21 16:28:05 622

空空如也

空空如也

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

TA关注的人

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