#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
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
写入txt: string path = Server.MapPath("~/") + "\\Content\\删除记录.txt"; string w = DateTime.Now.ToString() + "----" + zfry.userid + "----" + zfry.username....
代码的坏味道主要有:Duplicated Code---(重复的代码):如果你在两个以上的地点看到相同的程序结构,那可以:设法将它们合二为一,程序会变得更好。Long Method ------(过长函数): 1 private void bindSaleInfo(string swhere) .....
分类:
其他好文 时间:
2014-12-30 18:28:53
阅读次数:
209
我前台绑定数据用了repeater控件 html代码是'/> 我的方法是在前台用jq获取,代码如下 另一个页面后台接收ID if (Request["ID"] != null) { string sql = string.Format("select * from...
分类:
其他好文 时间:
2014-12-30 18:26:50
阅读次数:
163
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 -> 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
#region 将List转换为Json public string List2JSON(List objlist, string classname) { string result = "{"; if (classname....
#region 将DataTable转换为json public string dt2json(DataTable dt) { JavaScriptSerializer jss = new JavaScriptSerializer(); ...
TTstPoint = record LABC: string; //L,A,B,C Factor: string; //功率因数 Angle: string; //相位角度 TestFreq: string;//测试频率 TestVolt,Tes...
分类:
其他好文 时间:
2014-12-30 16:31:01
阅读次数:
136