码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
共享内存实现进程间通信
#include "stdio.h"#include "string.h"#include "unistd.h"#include "sys/shm.h"int main(){ int id = shmget(0x8888, 100, IPC_CREAT|0644); if (id==-1) {...
分类:系统相关   时间:2014-12-30 18:42:42    阅读次数:252
[VB] if 判断语句 和 If、IIf函数的比较
1 Module Module1 2 Sub Main() 3 Dim i As Integer = 1 4 Dim s1 As String = "我是真的" 5 Dim s2 As String = "我不是真的" 6 D...
分类:其他好文   时间:2014-12-30 18:40:42    阅读次数:1247
C#写入excel和txt
写入txt: string path = Server.MapPath("~/") + "\\Content\\删除记录.txt"; string w = DateTime.Now.ToString() + "----" + zfry.userid + "----" + zfry.username....
分类:Windows程序   时间:2014-12-30 18:32:19    阅读次数:269
关于重构(四)--代码的坏味道
代码的坏味道主要有:Duplicated Code---(重复的代码):如果你在两个以上的地点看到相同的程序结构,那可以:设法将它们合二为一,程序会变得更好。Long Method ------(过长函数): 1 private void bindSaleInfo(string swhere) .....
分类:其他好文   时间:2014-12-30 18:28:53    阅读次数:209
获取多个checkbox的值
我前台绑定数据用了repeater控件 html代码是'/> 我的方法是在前台用jq获取,代码如下 另一个页面后台接收ID if (Request["ID"] != null) { string sql = string.Format("select * from...
分类:其他好文   时间:2014-12-30 18:26:50    阅读次数:163
LeetCode Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters  Total Accepted: 35063 Total Submissions: 159111My Submissions Question  Solution  Given a string, find the length of the longest subst...
分类:其他好文   时间:2014-12-30 17:16:14    阅读次数:231
int string java 呼转
int -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=In...
分类:编程语言   时间:2014-12-30 16:35:34    阅读次数:181
C#中List集合转换JSON
#region 将List转换为Json public string List2JSON(List objlist, string classname) { string result = "{"; if (classname....
分类:Windows程序   时间:2014-12-30 16:34:13    阅读次数:249
C#中DataTable转换JSON
#region 将DataTable转换为json public string dt2json(DataTable dt) { JavaScriptSerializer jss = new JavaScriptSerializer(); ...
分类:Windows程序   时间:2014-12-30 16:33:58    阅读次数:205
创建一个新类
TTstPoint = record LABC: string; //L,A,B,C Factor: string; //功率因数 Angle: string; //相位角度 TestFreq: string;//测试频率 TestVolt,Tes...
分类:其他好文   时间:2014-12-30 16:31:01    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!