码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
Java 拾遗
1、选择表达式中的类型转换public class Test { public void static main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:编程语言   时间:2014-05-12 09:39:52    阅读次数:294
关于时间的转换
//把秒转换成分钟 /// /// 把秒转换成分钟 /// /// public static int SecondToMinute(int Second) { // / 换成 * 号...
分类:其他好文   时间:2014-05-12 09:33:41    阅读次数:198
CGContextAddArc
这个函数让我在纸上画了半天才搞明白,把我的理解给大家分享下。void CGContextAddArc(CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clo...
分类:其他好文   时间:2014-05-12 09:32:43    阅读次数:266
Android程序中的notifyDataSetInvalidated()和notifyDataSetChanged()有何区别
notifyDataSetChanged方法通过一个外部的方法控制如果适配器的内容改变时需要强制调用getView来刷新每个Item的内容。public void notifyDataSetChanged ()该方法内部实现了在每个观察者上面调用onChanged事件。每当发现数据集有改变的情况,或...
分类:移动开发   时间:2014-05-12 09:14:07    阅读次数:342
将日期类型转换成年月日的形式
如题. 1 namespace sanyuandemo 2 { 3 class Program 4 { 5 static void Main(string[] args) 6 { 7 DateTime dateTime = Da...
分类:其他好文   时间:2014-05-10 23:01:05    阅读次数:304
oc语言复制视频文件
1 void copyFile() 2 { 3 NSString *home=NSHomeDirectory(); 4 NSString *path=[NSString stringWithFormat:@"%@/desktop/oc.mp4",home]; 5 NSStr...
分类:编程语言   时间:2014-05-10 21:12:51    阅读次数:368
templateMethod(模板方法模式)
MakeCar.javapackage edu.hhxy;/* * 组装车 */public abstract class MakeCar { //组装车头 public abstract void makeHead(); //组装车身 public abstract...
分类:其他好文   时间:2014-05-10 21:08:42    阅读次数:302
关于main()
1.在c语言中:int main( void )int main( int argc, char *argv[] )如果不需要从命令行中获取参数,请用int main(void) ;否则请用int main( int argc, char *argv[] ) 。如果 main 函数的最后没有写 re...
分类:其他好文   时间:2014-05-10 20:43:13    阅读次数:445
LeetCode Insertion Sort List
class Solution {public: ListNode *insertionSortList(ListNode *head) { if (head == NULL) return NULL; ListNode* sorted_head = head; ...
分类:其他好文   时间:2014-05-10 20:39:14    阅读次数:419
【LeetCode】Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public String int...
分类:其他好文   时间:2014-05-10 20:31:10    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!