码迷,mamicode.com
首页 >  
搜索关键字:new 与malloc的区别    ( 74660个结果
EXCEL排序
EXCEL排序Time Limit : 10000/5000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 32Accepted Submission(s) : 8Font:Times New ...
分类:其他好文   时间:2014-05-25 19:38:37    阅读次数:315
.Net下 自动执行MSI和EXE文件
MSI是安装文件,需要系统自带的msiexec.exe来执行 var tempDir = @"D:\UploadFiles\SCADASetupWix.msi"; var start = new ProcessStartInfo("msiexec.exe", "/i ...
分类:Web程序   时间:2014-05-25 19:20:17    阅读次数:279
php排序方法之快速排序
$arr = array(3,55,45,2,67,76,6.7,-65,85,4);function quickSort($arr){ if (count($arr) ";print_r($new_arr);exit;
分类:Web程序   时间:2014-05-25 19:13:17    阅读次数:233
【LeetCode】Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new len...
分类:其他好文   时间:2014-05-25 19:08:31    阅读次数:203
JavaScript Patterns 2.9 Coding Conventions
It’s important to establish and follow coding conventions—they make your code consistent, predictable, and much easier to read and understand. A new d...
分类:编程语言   时间:2014-05-25 18:49:35    阅读次数:316
单例模式
单例模式是一个比较简单的模式,其定义如下: 确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。  通用类图 通用代码 Public Class Singleton Private sing = New Singleton '限制产生多个对象 Private Singleton() '通过该方法获得实例对象...
分类:其他好文   时间:2014-05-25 18:13:41    阅读次数:236
LeetCode: Insert Interval [056]
【题目】 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Example 1: Given intervals [1,3],[6,9], insert and mer...
分类:其他好文   时间:2014-05-25 12:56:43    阅读次数:271
常用android的smali注入代码
常用android的smali注入代码 1.增加log信息 const-string v3,"SN" invoke-static {v3,v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I   2.弹出消息框 new AlertDialog.Builder(self) .setTitl...
分类:移动开发   时间:2014-05-25 09:00:41    阅读次数:324
the leak of the memory in c++ 03
The Leak of the Memory in C++     In this chaper I will introduce a new smart pointer which is scoped_ptr; It likes auto_ptr but better. When peopel use auto_ptr, sometimes they forget that auto_...
分类:编程语言   时间:2014-05-25 07:03:10    阅读次数:373
单例模式在多线程中的使用情况
上述代码中,如果直接用于多线程中是存在问题的,比如线程A调用MyThreadScopeData.getInstance()获取MyThreadScopeData对象,执行到 instance = new MyThreadScopeData();还没返回的时候恰好这时候线程B也来调用MyThreadScopeData.getInstance(),执行了 instance = new MyThreadScopeData();这时候则线程B创建的对象会覆盖线程A创建的对象。所以在线程A中的MyThreadScop...
分类:编程语言   时间:2014-05-25 04:47:12    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!