码迷,mamicode.com
首页 >  
搜索关键字:new delete    ( 85348个结果
Codeforces Amusing Joke 题解
So, the New Year holidays are over. Santa Claus and his colleagues can take a rest and have guests at last. When two "New Year and Christmas Men" meet, thear assistants cut out of cardboard the letter...
分类:其他好文   时间:2014-07-22 23:03:53    阅读次数:521
asp.net,copy网页的代码去掉格式化代码前面的序号
string path = Server.MapPath("copycode/code.txt"); string[] allCodeLine = System.IO.File.ReadAllLines(path, System.Text.Encoding.UTF8); System.Text.StringBuilder strb = new Sys...
分类:Web程序   时间:2014-07-22 23:02:54    阅读次数:366
GDB 调试程序
一 设置, 查看, 删除断点信息b xxx.cpp : num(or function)在 xxx.cpp 的第 num 行设置断点, 假如项目中只有一个 .cpp 文件, 不需要指定 xxx.cpp, 直接 b num 即可info break 查看断点信息, 断点信息中有断点的 index, 通...
分类:数据库   时间:2014-05-01 21:09:59    阅读次数:433
javascript 数组特性鉴赏一
创建数组如果你习惯了用 new 来实例化对象的形式,那么在js中一定会疑惑,可选的参数数量代表的意义截然不同。new Array(size);//传一个参数的时候分两种情况,size是正整数时代表数组的长度;size是其它非数字类型代表的是初始化有一个元素的数组;非正整数的尝试豪无意义new Arr...
分类:编程语言   时间:2014-05-01 20:43:40    阅读次数:427
异常处理
1.使用DataSource=dt方式绑定GridView并实现删除时,引发了未处理的“RowsDelete”事件: 更改CommandName="Delete" 改一个名字 ,否则会引发GridView自身的Delete事件,但其实并未设置Delete事件。2.使用DataSource=dt方式绑...
分类:其他好文   时间:2014-05-01 18:39:19    阅读次数:286
SharePoint列表数据展现方法
方法1:Guid guid = new Guid ("{8238B046-EC5F-46B6-8E18-028F77EC2620}");SPSite Asite = new SPSite ("http://mosslt/");SPList list = Asite.RootWeb.Lists[gui...
分类:其他好文   时间:2014-05-01 18:38:35    阅读次数:290
Android WebView开发常见问题
1、添加权限:AndroidManifest.xml中必须使用许可”android.permission.INTERNET”,否则会出Web page not available错误。        2、在要Activity中生成一个WebView组件:WebView webView = new WebView(this);        3、设置WebView基本信息:...
分类:移动开发   时间:2014-05-01 18:19:58    阅读次数:480
Java web Session 监听类。
public class SessionListener implements HttpSessionListener { static Logger log = Logger.getLogger( SessionListener.class.getName()); private static Map map = new HashMap(); ...
分类:编程语言   时间:2014-04-30 22:31:38    阅读次数:397
Gson序列化对象时排除字段
import com.google.gson.ExclusionStrategy; import com.google.gson.FieldAttributes; /** *Gson序列化对象排除属性 *调用方法: *String[] keys = { "id" }; *Gson gson = new GsonBuilder().setExclusionStrategies(new Jso...
分类:其他好文   时间:2014-04-30 22:22:38    阅读次数:610
C++ new函数的背后
new函数的不为人知的背后~~~...
分类:编程语言   时间:2014-04-30 22:18:39    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!