码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java:对象赋值
1 package exercise; 2 3 class Tank 4 { 5 int level; 6 } 7 8 public class Assignment{ 9 public static void main(String[]args){10 Tan...
分类:编程语言   时间:2015-04-14 00:27:22    阅读次数:120
java   登陆窗口的实现
importjavax.swing.*; /** *CreatedbyAdministratoron2015/4/130013. *<p> *组件的绝对定位:使用的是Compontent类中的setBounds方法 *<p> *<p> *setBoundsxy表示组件的位置widthheight组件的宽高 */ publicclasschap15_10{ publicstaticvoidmain(String[]..
分类:编程语言   时间:2015-04-13 23:06:48    阅读次数:324
Android的断点下载详细分析二
由于一篇blog写不完,这里是接着上一篇blog的。 写完了MVC中的View,写着我们需要考虑Control层了,他的任务是在后台利用多线程实现断点下载。 先看源码: public class FileDownloader { /* TAG,便于调试 */ private static final String TAG = "FileDownloader"; /* 上下文 */ p...
分类:移动开发   时间:2015-04-13 23:04:44    阅读次数:207
struct 集合
class Program { struct xs { public string name; public int age; } static void Main(string[] args) { ArrayList al = new ArrayList(); Console.Write(...
分类:其他好文   时间:2015-04-13 22:51:42    阅读次数:141
struct 数组
class Program { struct xs //自定义xs类型 { public int xuehao; //public 共有的 public string xingming; public double shuxue; public double yuwen; public do...
分类:编程语言   时间:2015-04-13 22:50:48    阅读次数:137
字符串匹配的python实现
所有字符串匹配算法的核心问题是,当出现不匹配时,如何向后移动模式串一、暴力匹配算法 如果要匹配一个字符串s 和一个模式串p,则从i=0开始依次匹配s[i:(i+len(p))],简单粗暴,代码如下:def matcher(t, p): # param t: the string to chec...
分类:编程语言   时间:2015-04-13 22:48:09    阅读次数:154
GridView Footer模板列中给Dropdownlist赋值
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){ string FstWeekEnd,FstWeekEndday; if (e.Row.RowType == DataControlRowType...
分类:其他好文   时间:2015-04-13 22:38:53    阅读次数:142
集合排序求平均
static void Main(string[] args) { ArrayList al = new ArrayList(); //定义一个集合 Console.Write("请输入人数:"); int n = Convert.ToInt32(Console .ReadLine ());...
分类:编程语言   时间:2015-04-13 22:38:31    阅读次数:162
DSC微信投票翻页
//数据绑定 public void dlBind(string chatid) { int curpage = Convert.ToInt32(this.labPage.Text); PagedDataSource ps=new PagedDataSource(); string sql="sel...
分类:微信   时间:2015-04-13 22:32:52    阅读次数:248
ACM竞赛 Java编程总结
1.字符串的长度String str = new String(" abcd");int length = str.length();2.数组的长度2.1对于 a[][]a.length代表a的行数 a[i].length代表a的列数2.2对于a[] a.length代表a的长度3.字符串与字...
分类:编程语言   时间:2015-04-13 22:31:38    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!