自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 C语言单向链表的新建以及遍历输出

#include <stdio.h> #include<stdlib.h> #include<string.h> typedef struct play{ int id; char name[20]; struct play *next; }PLAY; //创建链表 PLAY * build(int num){ PLAY *head,*playnew,*playend; head=(PLAY *)malloc(sizeof(PLAY));//头结点分配空间 i

2020-12-06 22:14:43 446

原创 Java定义一个一维随机数组,每个元素都不一样

package test; public class SuiJiShuZu { public static void main(String[] args) { //定义一个一维数组,长度为6,范围为[1,30],随机6个元素都不一样 int[] arr=new int[6]; for (int i = 0; i < arr.length; i++) { arr[i]=(int)(Math.random()*30+1); boolean flag=false; while (true) { for (

2020-09-26 23:45:29 907 2

原创 java二分法数组查找

package pack; public class ErFenFa { public static void main(String[] args) { //二分法查找,前提所要查找的数组必须有序 int[] arr= {-32,-24,-22,-17,0,2,13,17,23,56}; int head=0;//初始的首索引 int end=arr.length-1; int dest=-32;//初始的末索引 boolean flag=true; while (head<=end) { int

2020-09-26 23:30:43 135

原创 Java金字塔输出程序

package test; import java.util.Scanner; public class Jinzita01 { //金字塔程序 public static void main(String[] args) { System.out.println(“请输入金字塔的层数(为整数):”); Scanner input=new Scanner(System.in); input.close(); int num=input.nextInt(); for (int i = 1; i <=nu

2020-09-24 00:46:52 376

原创 人生第一个java输出HelloWorld

//pubilc表示公开的 //class表示定义一个类 //HelloWorld表示一个类名 public class HelloWorld {//表示一个公开的类,起名HelloWorld //类体中不允许直接编写java语句【除声明变量外】 //类体【记住】 /* public表示公开的 static表示静态的 void表示空 main表示方法名是main (string[] args)是一个main方法的形式参数列表【args随便写,写成什么都行】 需要记住的是:以下的方法是一个程序的“主方法”,

2020-09-02 12:28:11 232

原创 初学C语言

初学C语言: #include<stdio.h><stdio.h> int main() { int Inumber; Inumber=345; printf("%d\n",Inumber); return 0; } #include<stdio.h> int main() { printf(“Fine Day!\n”); return 0; } #include<stdio.h> int main() { putchar(‘t’); putchar(’\n’

2020-08-25 18:33:47 305

空空如也

空空如也

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

TA关注的人

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