码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
MSChart绘图控件中折线图和柱形图画法
首先在前台拖入一个名为chart1的MSChart控件 //折线图 string strLegend = "Legend1"; Legend lg = new Legend(strLegend); lg.IsDockedInsid...
分类:其他好文   时间:2015-03-05 16:12:33    阅读次数:210
数据结构--求最大公约数(欧几里得算法)
package com.itany.oulijide; public class Test { public static void main(String[] args) { int result=gcd(50,15); System.out.println(result); } //默认m>n,如果m<n,那么第一次迭...
分类:编程语言   时间:2015-03-05 14:54:43    阅读次数:285
ZOJ3228---Searching the String(AC自动机)
Little jay really hates to deal with string. But moondy likes it very much, and she’s so mischievous that she often gives jay some dull problems related to string. And one day, moondy gave jay another...
分类:其他好文   时间:2015-03-05 14:48:39    阅读次数:177
[leetcode] Reverse Words in a String
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Updat...
分类:其他好文   时间:2015-03-05 14:37:43    阅读次数:153
spring处理方法返回值的类型
spring mvc处理方法支持如下的返回方式:ModelAndView, Model, ModelMap, Map,View, String, void。下面将对具体的一一进行说明:ModeAndView: @RequestMapping("/show1") public ModelAndV...
分类:编程语言   时间:2015-03-05 14:37:29    阅读次数:245
Android将图片保存到相册并及时看到
Android中将图片保存到SD卡中,相册里不会及时出现这张图片,因为没有及时更新其索引,一般需要开机几次。当然我们可以手动更新其索引。 1,首先将文件保存到SD卡中。 String filePath = "xxx"; //全路径 saveImgToSDcard(file...
分类:移动开发   时间:2015-03-05 14:32:21    阅读次数:134
20150304 类
首先学习了类,分为string类和Math类!一、stringstring x = Console.ReadLine();int i=x.Length;//Length是截取字符长度,返回一个int值x=x.Trimm();//去掉字符前后的空格x=x.ToLower;//大写变小写x=x.ToUp...
分类:其他好文   时间:2015-03-05 14:31:00    阅读次数:117
ModelAndView简介
ModelAndView:Model资料物件+View资料物件;构成spring mvc 中页面显示时需要的的所有资料物件;View用来渲染暴露的Model模型;ModelAndView有7个构造方法如下:public ModelAndView()public ModeAndView(String ...
分类:其他好文   时间:2015-03-05 14:26:20    阅读次数:125
第二章:Rotate、变位词
1.向量旋转将一个具有n个元素的一维向量左旋i位。1.1使用i个额外空间void left_rotate(string &s,int i){ string s2(s,0,i);//将前i个字符复制到s2 int j=0; //将剩余n-i个元素左移i个位置 for(;i ...
分类:其他好文   时间:2015-03-05 14:25:06    阅读次数:203
03.C#多线程
1.使用多线程的几种方式(1)不需要传递参数,也不需要返回参数 ThreadStart是一个委托,这个委托的定义为void ThreadStart(),没有参数与返回值。class Program { static void Main(string[] args) { for (int i = 0;...
分类:编程语言   时间:2015-03-05 14:17:08    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!