码迷,mamicode.com
首页 >  
搜索关键字:add new    ( 108666个结果
高德地图AmapSDKDemo运行
①file/new/other/androd Application Poject,选择SDKDemo,复制到workspace②申请amap的key,名字在res/values/strings/的demo_title:为AMapsD Demo③run-as可以在模拟器里也可以在手机上。
分类:其他好文   时间:2014-05-05 21:48:01    阅读次数:257
GC使用注意
GC.Collect()GC.WaitForPendingFinallizers()GC.KeepAlive尽量不要new很大的Object不要频繁的new生命周期很短的Object,这样会导致很多内存碎片引起频繁的压缩
分类:其他好文   时间:2014-05-05 21:47:03    阅读次数:448
STL 之 空间适配器
1.sgi STL"标准"的空间适配器: 该适配器很简单,只是对new delete等内存分配释放函数的一层简单封装而已,所以sgi stl几乎没用上它(效率太低),代码位于defalloc.h.2.sgi stl特殊适配器 std::alloc: 该版本作为stl中的默认适配器,主要分成两个部分:...
分类:其他好文   时间:2014-05-04 12:41:42    阅读次数:381
MVC的Ajax异步请求
@using (Ajax.BeginForm("GetTime","order",new AjaxOptions() { Confirm="你确认这么做吗?", HttpMethod="post", ...
分类:Web程序   时间:2014-05-03 22:50:30    阅读次数:344
delphi xe6 android ListView增加 Header或Footer 的方法
var Item1: TListViewItem;begin Item1 := ListView1.Items.Add; Item1.Purpose:=TListItemPurpose.Header;// Item1.Purpose:=TListItemPurpose.Footer; Item1.t...
分类:移动开发   时间:2014-05-03 22:34:33    阅读次数:547
Distinct Subsequences
题目: Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (c...
分类:其他好文   时间:2014-05-03 21:48:19    阅读次数:252
Local Functions
int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function. return x + y; } BOOST_LOCAL_FUNCTION_NAME(add) BOOST_TEST(add(1, 2) == 3); // Local function call. int BOOST_LOCAL_FUNCTION(void) ...
分类:其他好文   时间:2014-05-03 21:47:48    阅读次数:332
32机的内存分页机制
在实模式下寻址的时候,”段寄存器+偏移地址”进过转换计算以后得到的地址是“物理地址”,也就是在物理内存中的实际地址,而在保护模式下,“段选择器+偏移地址”转换后的地址被称为“线性地址”而不是“物理地址”,那么线性地址就是物理地址吗? 答案可能是,也可能不是,这取决于80386的内存分页机制是否被使用。 为什么有内存分页机制? 我们回顾一下,单任务的DOS系统中,一个应用程序可以使用所有的空闲...
分类:其他好文   时间:2014-05-03 20:56:39    阅读次数:368
android MediaRecorder录制音频
使用MediaRecorder录制音频步骤: MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); re...
分类:移动开发   时间:2014-05-03 20:51:30    阅读次数:424
复习PHP-语言参考-引用
1.引用指的是不同的名称访问同一个变量内容最简单的例子为:<?php$a=&$b;?>在形参中加入引用变量,则实参会在函数执行时被影响。自PHP5起,new自动返回引用,所以$a=&newa;会报错。注意以下一个示例:<?php$a=5;$b=7;functionfoo(){   global$..
分类:Web程序   时间:2014-05-03 14:42:30    阅读次数:351
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!