摘要: 每天叫醒自己的不是闹钟,而是梦想 conn层 package conn; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLExceptio 阅读全文
posted @ 2017-04-08 19:24 暮雪超霸 阅读(366) 评论(0) 推荐(0)
摘要: package arrayListDemo; import java.util.*; import java.util.Scanner;; public class ArrayListDemo { public static void main(String[] args) { ArrayList< 阅读全文
posted @ 2017-04-07 13:53 暮雪超霸 阅读(200) 评论(0) 推荐(0)
摘要: package arrayListHashMap; import java.util.ArrayList; import java.util.HashMap; import java.util.Map.Entry; public class ArrayListHashMap { public sta 阅读全文
posted @ 2017-04-07 13:52 暮雪超霸 阅读(300) 评论(0) 推荐(0)
摘要: 1.函数(方法)定义 类中特定功能小程序 2.函数定义格式 修饰符 返回值类型 函数名 (参数类型 形式参数) { 执行语句; return 返回值 } 函数功能实现的2个明确 1.这个功能的结果是什么 2.这个功能运行过程中是否需要未知内容参与运算 待定。后续添加 阅读全文
posted @ 2017-03-25 14:11 暮雪超霸 阅读(310) 评论(1) 推荐(0)
摘要: 1.break和continue必须使用在循环或者switch语句中 2.当break语句单独存在时。后面不要定义其他语句,因为后面的语句无法执行到 3.break跳出当前所在循环 4.break跳出指定循环。break 标记名称 xiaoqiang:for(;;) //指定区间有效 for(int 阅读全文
posted @ 2017-03-25 13:34 暮雪超霸 阅读(196) 评论(0) 推荐(0)
摘要: #include <stdio.h>main(){int c, i, nwhite, nother;int ndigit[10];nwhite = nother = 0;for (i = 0; i < 10; ++i)ndigit[i] = 0;while ((c = getchar()) != E 阅读全文
posted @ 2016-12-20 20:45 暮雪超霸 阅读(130) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int c,lastc; while((c = getchar()) != EOF){ if (c != ' ') putchar(c); if (c == ' ') if (lastc != ' ') putchar(c); lastc = 阅读全文
posted @ 2016-12-20 20:23 暮雪超霸 阅读(199) 评论(0) 推荐(0)
摘要: /*以每行一个单词的形式打印其输入 */ getchar putchar函数,是逐个打印和输入(逐个循环打印) #include <stdio.h> int main() { int c; while( (c = getchar()) != EOF) if(c == ' ' || c == '\n' 阅读全文
posted @ 2016-12-20 20:03 暮雪超霸 阅读(157) 评论(0) 推荐(0)
摘要: java -jar udf.jar 127.0.0.1 root 123456 [32/64] 阅读全文
posted @ 2016-11-28 17:23 暮雪超霸 阅读(240) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int i,j,a[3][3]; for (i=0;i<3;i++) for (j=0;j<3;j++) { printf("a[%d][%d]=",i,j); scanf("%d",&a[i][j]); } for (i=0;i<3;i 阅读全文
posted @ 2016-11-22 23:06 暮雪超霸 阅读(1268) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int a[10],i,j,sum=0,x; for (i=0;i<10;i++) {scanf("%d",&a[i]); } scanf("%d",&x); for (i=0;i<10;i++) { if (x==a[i]) { pri 阅读全文
posted @ 2016-11-22 23:03 暮雪超霸 阅读(295) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int a,b,c,d; printf("年"); scanf("%d",&a); printf("月日"); scanf("%d",&b); if (a%4!=0) { c=a; //c不是闰年 printf("MO"); } if ( 阅读全文
posted @ 2016-11-22 22:56 暮雪超霸 阅读(483) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int i,j,row=0,colum=0,max; 5 int a[3][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}}; 6 max=a[0][0]; 7 for (i=0;i<=2;i+ 阅读全文
posted @ 2016-11-20 22:07 暮雪超霸 阅读(12271) 评论(0) 推荐(2)
摘要: C语言pow函数编写 1 #include<stdio.h> 2 3 double chaoba(double f,double q); //声明自定义函数 4 void main(void) 5 { 6 double a=2.0,b=3.0,c; 7 c=chaoba(a,b); 8 printf 阅读全文
posted @ 2016-11-20 20:14 暮雪超霸 阅读(5128) 评论(2) 推荐(0)
摘要: linux touch 文件名mkdir -P 路径文件 cat 打开文件 vihostname 主机名ln 复制 ln -s 快捷方式cp 复制-r复制整个目录-p保持源文件属性不变-f强制复制mv移动文件 rm 删除-rf 递归强制删除 find 查找文件或目录、-name 名字 -size 文 阅读全文
posted @ 2016-11-06 18:15 暮雪超霸 阅读(181) 评论(0) 推荐(0)