摘要: #include <iostream> using namespace std; void merge(int a[], int s1, int e1, int s2, int e2) { int n1 = e1 - s1 + 1; int n2 = e2 - s2 + 1; int al[n1]; 阅读全文
posted @ 2022-09-27 10:31 花千泪雨 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 单选框 package com.hai.week2; import javax.swing.*; import java.awt.*; import java.net.URL; import java.security.acl.Group; public class Demo15 extends J 阅读全文
posted @ 2022-06-12 21:44 花千泪雨 阅读(35) 评论(0) 推荐(0) 编辑
摘要: package com.hai.week2; import javax.swing.*; import java.awt.*; public class Demo10 extends JFrame implements Icon { int width; int height; public Dem 阅读全文
posted @ 2022-06-11 10:10 花千泪雨 阅读(20) 评论(0) 推荐(0) 编辑
摘要: package com.hai.week2; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; class MyDialo 阅读全文
posted @ 2022-06-10 11:41 花千泪雨 阅读(3) 评论(0) 推荐(0) 编辑
摘要: package com.hai.week2; public class Demo07 { public static void main(String[] args) { int a[][] = new int [5][6]; int sum=0; a[2][4] = 5; a[3][4] = 8; 阅读全文
posted @ 2022-06-06 13:29 花千泪雨 阅读(6) 评论(0) 推荐(0) 编辑
摘要: package com.hai.week2; public class Demo06 { public static void main(String[] args) { int a[] = {1,2,3,5,135,4,54,}; int b[] = Arrayssort(a); for (int 阅读全文
posted @ 2022-06-04 20:11 花千泪雨 阅读(8) 评论(0) 推荐(0) 编辑
摘要: package com.hai.week2; public class Demo01 { public static void main(String[] args) { //打印一个5行的三角形 for (int i = 1; i <= 5; i++) { for (int j = 5; j >= 阅读全文
posted @ 2022-06-03 17:39 花千泪雨 阅读(4) 评论(0) 推荐(0) 编辑
摘要: break与continue 示例break package com.hai.week2;​public class DemoBreak { public static void main(String[] args) { int i=0; while (i<100){ if(i==30){ bre 阅读全文
posted @ 2022-06-03 17:04 花千泪雨 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Hello world 随便建立一个文件夹,存代码 新建一个Java文件 文件后缀名为.java Hello.java 注意是否真的改了后缀名 编写代码 public class Hello{ public static void main(String []args){ System.out.pr 阅读全文
posted @ 2022-06-02 17:37 花千泪雨 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 常用的DOS命令 打开cmd的方式 开始->win系统->命令提示符 win+R 输入cmd打开控制台(推荐) 在任意文件夹下面,按住shift+鼠标右键,打开命令行窗口 常用的Dos命令 #盘符切换#查看当前目录下所有文件 dir#切换目录 cd(change directory)cd..返回上一 阅读全文
posted @ 2022-06-02 16:24 花千泪雨 阅读(17) 评论(0) 推荐(0) 编辑