码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
UVA 1149 Bin Packing 装箱(贪心,水)
每次选最大的物品和最小的物品放一起,如果放不下,大物体孤独终生,否则相伴而行。。。#includeusing namespace std;const int maxn = 1e5+42;int a[maxn];templateinline void scan_d(T *ret){ char c...
分类:其他好文   时间:2015-08-02 13:14:07    阅读次数:253
curl上传、下载、https登陆
1、下载$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "ftp://127.0.0.1/downtest.txt"); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_RET...
分类:Web程序   时间:2015-08-02 13:13:45    阅读次数:149
黑马程序员——java学习9(毕15-16总结)——TreeSet
1、 1 package learn; 2 /* 3 * |--TreeSet 4 * 可以对Set集合排序 5 * 底层数据结构是二叉树 6 * 保证数据唯一性的依据:compareTo方法return 0;原序ret...
分类:编程语言   时间:2015-08-01 15:35:01    阅读次数:112
函数和预处理的区别
第一:对于预处理来说它与类型无关,举例如下,#include<stdio.h> #defineSIZE(X)sizeof(X) intmain() { intret; ret=SIZE(int); printf("%d",ret); return0; } 像这样函数就做不到,因为函数的参数不可能是类型名;第二,在预处理时的内容是直接替换的不经过任何处理,..
分类:其他好文   时间:2015-07-29 19:40:38    阅读次数:152
分析Linux内核创建一个新进程的过程
新进程的执行源于以下前提: - dup_task_struct中为其分配了新的堆栈 - 调用了sched_fork,将其置为TASK_RUNNING - copy_thread中将父进程的寄存器上下文复制给子进程,保证了父子进程的堆栈信息是一致的 - 将ret_from_fork的地址设置为eip寄存器的值 最终子进程从ret_from_fork开始执行...
分类:系统相关   时间:2015-07-29 14:08:57    阅读次数:198
windows 10
http://auPL.v4.b1.download.windowsupdate.com/c/updt/2015/07/10240.16384.150709-1700.th1_clientchina_ret_x64fre_zh-cn_9f5cc7df67e002aca9558471f7b0772b7...
分类:Windows程序   时间:2015-07-29 13:54:09    阅读次数:183
leetCode 97.Interleaving String (交错字符串) 解题思路和方法
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", ret...
分类:其他好文   时间:2015-07-28 13:09:37    阅读次数:179
Bitmap和Drawable的互相转换
刚好之前的项目有用到,怕遗忘了,就先记录下来,然后会用到的时候直接来这copy使用就好了。  1.Bitmap ---->Drawable: public static Drawable bitmapToDrawable(Bitmap bitmap) { BitmapDrawable bd = new BitmapDrawable(bitmap); ret...
分类:其他好文   时间:2015-07-28 13:02:06    阅读次数:137
[LeetCode][Java] Binary Tree Maximum Path Sum
题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / 2 3 Ret...
分类:编程语言   时间:2015-07-26 22:39:28    阅读次数:189
快速幂取模函数 递归模板
1 int multi(int a,int b) 2 { 3 if(b==0) 4 return 1; 5 if(b==1) 6 return a; 7 int ret=multi(a,b/2); 8 ret=(ret*ret)%MO...
分类:其他好文   时间:2015-07-24 10:36:57    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!