自定义博客皮肤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)
  • 收藏
  • 关注

原创 Struts2配置文件里面action详解

登陆界面:Insert title here用户名:密码   :  form表单action属性提交到success,配置文件里面name值与之对应,class表示提交到的处理类,method指定处理方法,当没有method值时,会用默认方法execute替代,result里面的name值

2017-06-06 20:31:48 588

转载 python书籍推介

python的书很多 , 但是好书不多, 经过我这么多年的python学习,我总结出了一个python学习的读书路线:python简明教程: 让你大体上了解一下python, 最好是能够独立完成最后一个练习项目之后再看别 的书;python学习手册, python基础教程,python核心编程, 这三本书都是讲基础的, 但是都有不足又相互补充 , 我建议你随便挑一本

2016-12-13 21:07:16 331

原创 jdbc连接sql server数据库

第一步:eclipse中的jdk配置正确,第二步:下载sql server 的jar包,并导入第三步:设置ssql server 的端口号,详情百度第四步:测试连接代码 public class DateBaseConnection {     // 注册驱动      private static final String DRIVER = "com.microsoft.

2016-12-12 13:07:54 381

原创 c++里面的值传递,指针传递,地址传递详解

c++里面的值传递://将i和j的值传给a和b,实参传给形参,但由于形参不会回传给实参,故输出i仍为38,j仍为45void main(){void swap(int, int);int i = 38, j = 45;                                                       swap(i,j) ;          

2016-12-09 00:08:42 3899

原创 c语言的getchar()与getc()详解

int getchar()//标注输入,通常为键盘输入int getc(FILE *stream)//从文件读取字符int putchar(int c)将指定的字符输出到标准终端(屏幕)int putc(int c,*stream)将指定的字符输出到指定的输出流中(文件或屏幕)例如:char A='A',putchar(A)等价于putc(A,stdout)getc的功能包含g

2016-12-05 20:03:14 22900

原创 c++用指针遍历一维数组和二维数组

//统计一个字符数组里面字符出现个数void main(){char str1[100], temp;cin.getline(str1,100);cin >> temp;        int count = 0;for (char *P; p if (*p == temp)count++;}cout system("pause");}

2016-12-01 22:28:33 4875

原创 Guess Number Higher or Lower

题目:We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I'll tell you whether the number i

2016-11-24 18:44:53 205

原创 Move Zeroes

题目:Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after call

2016-11-24 18:31:55 173

原创 Maximum Subarray

题目: Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguou

2016-11-23 16:26:43 177

原创 eclipse常用快捷键

常用快捷键:1.System.out.println,输入Syso回车即可或者alt+/2.main方法,输入"main",然后回车或按alt+/3、快速修复:ctrl+14、删除一行:ctrl+d5、复制一行:ctrl+alt+↓6、增加注释:先选中代码块,然后ctrl+shift+/7、删除注释:先选中代码块,然后ctrl+shift+\8、内容辅助 Alt+/

2016-11-23 16:00:09 210

原创 整数和数组转化为字符串

1.将一个数组转化为字符串例如:int a[]={1,2,3};String string=Arrays.toString(a);2.讲一个int型转化为字符串int a=123;方法一.String string=Integer.toString(a);方法二.String string=String.valueOf(a);

2016-11-22 20:39:12 3280

原创 Sort List

题意:对链表进行排序思路:将链表用一个ArrayList保存,再sort()排序,构造一个新链表 public ListNode sortList(ListNode head) {if(head==null)return head;ArrayListtemp=new ArrayListwhile(head!=null){temp.add(head.val);head=h

2016-11-21 22:39:00 202

转载 Multiply Strings

大整数乘法思路:讲各位相乘的数保存在数组里,再将各个余数用一个StringBulider的insert方法逐个插入(insert方法将指定数符插入指定位置)public class MultiplyStrings {public String multiply(String num1, String num2) {num1=new StringBuffer(num1).re

2016-11-20 22:40:37 185

转载 屌丝的出路

婚礼端午节,我最好的一个朋友,也就是常说的死党,结婚了。我从深圳专程飞回西安参加他的婚礼。虽然比不上开着跑车的富二代,但朋友家庭条件也算不错,婚礼举办得很隆重:花车,宝马760Li;迎亲车队,30辆黑色奥迪A6;当然,朋友自己的蒙迪欧今天就闲在车库里了。婚房,高档社区,精装修,180平,四房两厅。事后这哥们还补了一句,这房子以后还得空着,我老婆家还有一套房,上班近点

2016-07-14 18:48:52 189

空空如也

空空如也

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

TA关注的人

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