码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
C#扩展方法的应用
给类添加扩展方法1、定义一个类Servicepublic class Service { private string _name; public string Name { get { return _name; } ...
分类:其他好文   时间:2014-06-28 10:44:20    阅读次数:132
U3D调用7z解压文件
using UnityEngine;using System;using System.IO;using System.Diagnostics;public class Test : MonoBehaviour{ //7z程序的程序目录 private string _7zExeUrl ...
分类:其他好文   时间:2014-06-28 10:39:29    阅读次数:168
获取ACCESS数据库中自增变量的值
/// /// 获取自增变量值 /// /// 自增变量值 public int getReturnIdentity() { //Conn_Open(); string strCMD...
分类:数据库   时间:2014-06-28 10:27:16    阅读次数:296
button倒计时
- (void)yourButtonTitleTime{ __block int timeout=30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);.....
分类:其他好文   时间:2014-06-26 00:43:27    阅读次数:305
IOS7图文混排及高度
_textView =[UITextView new]; NSString*str =@"是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是"; NSMutableAttributedString *attributedString = [[NSMutableAtt.....
分类:移动开发   时间:2014-06-26 00:39:24    阅读次数:352
前后台方法调用
1.后台调用前台JS方法(带参数)ClientScript.RegisterStartupScript(类型,键,调用的JS方法名(+参数+),是否启用该方法(true or flase));例:ClientScript.RegisterStartupScript(typeof(Page), "aa...
分类:其他好文   时间:2014-06-26 00:30:25    阅读次数:322
Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2014-06-26 00:07:07    阅读次数:311
C++ String 转 char*
近期一直用惯了C#,陡然间改回C++都有些不习惯了!吐槽一下,C#太方便了!!!言归正传,C++里有些时候会用到String转char*这个功能,于是进来搜到了一些方法:假设你申请了这样一个字符串:string str = "This is a test!",那么:1、str.data()能够返回该...
分类:编程语言   时间:2014-06-25 23:58:23    阅读次数:354
c#的多线程
多线程的使用方法:Thread t = new Thread(new ThreadStart (StartMethod));t.Start(); private void StartMethod() { Thread.Sleep(5000); MessageBo...
分类:编程语言   时间:2014-06-25 23:23:45    阅读次数:244
POJ 2545+2591+2247+1338简单水题
【题意简述】:就是有这样的一个序列,就拿当p1 = 2,p2 = 3, p3 = 5,来举例,由这三个数为基准组成的序列是: 2,3,4,5,6,8,9,10,12……现在给你这个序列数组的下标,让你求得这个数组中,这个下标里的数是多少。 【分析】:2,3,4,5,6,8,9,10,12……这个序列式由2,3,5这三个数生成的,具体如何生成,就是: 详见代码: 这里以POJ2545为例:...
分类:其他好文   时间:2014-06-22 06:52:37    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!