码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
Leetcode32. Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-04-03 11:10:45    阅读次数:102
i++和++i的区别
先看如下程序:class Program { static void Main(string[] args) { int x = 0; int y = 0; int i = 2; ...
分类:其他好文   时间:2015-04-03 11:10:25    阅读次数:109
Jsp页面调用JDBC导致的SQLException
本地连接MySQL数据库时,之前一直使用的方法是在项目lib中直接导入JDBC的jar包,这样只需要以下代码就可以得到一个Connection。 String user="xxx"; String password="123"; String url="jd...
分类:数据库   时间:2015-04-03 11:10:00    阅读次数:146
【转】<string> <string.h> <cstring>的区别
#includevoidmain(){ stringaaa="abcsdd"; printf("lookingforabcfromabcdecd%s\n", (strcmp(aaa,"abc"))?"Found":"NotFound");}//不能正确执行,提示说是string类型没有定义而下...
分类:其他好文   时间:2015-04-03 11:08:49    阅读次数:179
生成菜单序列号
/// /// 根据日期和随机码生成订单号 /// /// public string GetOrderNumber() { string num = DateTime.Now.ToString("y...
分类:其他好文   时间:2015-04-03 11:06:41    阅读次数:138
java中File类详解
构造函数 代码如下:public class FileDemo { public static void main(String[] args){ //构造函数File(String pathname) File f1 =new File("c:\\abc\\1.txt"); //File(Stri...
分类:编程语言   时间:2015-04-03 11:06:16    阅读次数:149
c# 的导入功能SqlBulkCopy
private static void DataTableToSQLServer( DataTable dt) { string connectionString = GetConnectionString(); using (SqlCon...
分类:数据库   时间:2015-04-03 11:04:55    阅读次数:141
C#基础——C#中问号的使用
1. 可空类型修饰符(?): 引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。 例如:string str=null; 是正确的,int i=null; 编译器就会报错。 为了使值类型也可为空,就可以使用可空类型,即用可空类型修饰符"?"来表示,表现形式为"T?" 例如:int?...
分类:Windows程序   时间:2015-04-03 10:51:31    阅读次数:135
C# winform 判断当前参数值与节点中的值是否一致
C# winform 判断当前参数值与节点中的值是否一致 public static bool CheckValues(string isscreenshot, string screenshottime, string screenshotsavepath) { try { bool flage = false; DataTable dt = ReturnTbByReradxml...
分类:Windows程序   时间:2015-04-03 09:39:52    阅读次数:154
C# winform 截屏代码
try { Image image = new Bitmap(width, height); Graphics g = Graphics.FromImage(image); g.CopyFromScreen(x, y, 0, 0, new System.Drawing.Size(width, height)); string hour = Dat...
分类:Windows程序   时间:2015-04-03 09:37:41    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!