码迷,mamicode.com
首页 >  
搜索关键字:size    ( 49122个结果
获取设备mac地址和md5加密
SGMSettingConfig.h#import @interface SGMSettingConfig : NSObject{ NSInteger HTTP_PACKAGE_SIZE; NSInteger HTTP_RETRY_TIMES; NSInteger REPLY_LENGTH; ...
分类:其他好文   时间:2014-05-16 03:36:59    阅读次数:373
POJ2533
POJ2533#include #include #define max(a, b) (((a) > (b)) ? (a) : (b))void GetMaxIncLen(int *data, int *maxLen, int size){ int i, j; for(i = 2; i max) ....
分类:其他好文   时间:2014-05-15 13:52:57    阅读次数:259
size_t ssize_t socklen_t
size_t 解释一:为了增强程序的可移植性,便有了size_t,它是为了方便系统之间的移植而定义的,不同的系统上,定义size_t可能不一样。 在32位系统上 定义为 unsigned int 也就是说在32位系统上是32位无符号整形。在64位系统上定义为 unsigned long 也就是...
分类:其他好文   时间:2014-05-15 10:16:46    阅读次数:204
cocos2d-x 绘制图形
绘制图形如下:   程序代码: 需要重新定义父类虚函数draw() 1、在HelloWorldScene.h头文件加入: virtual void draw(); 2、定义实现: void HelloWorld::draw() { //add your code.... CHECK_GL_ERROR_DEBUG(); CCSize size = CC...
分类:其他好文   时间:2014-05-15 09:10:32    阅读次数:285
leetCode-002 Median of Two Sorted Arrays
leetCode-002 Median of Two Sorted Arrays 【题目】 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
学习C/C++语言:结构体,动态链表
//*************************************************************** //结构体:简单的静态链表 #include #include #define NULL 0 #define SIZE 10 struct student { char num[SIZE]; float score; struct student *next; ...
分类:编程语言   时间:2014-05-15 02:55:09    阅读次数:359
计算比尔盖茨财富的方法
比尔·盖茨到底有多富? 1、盖茨每秒赚250美元,即每天赚2000万美元,一年赚78亿美元; 2、假如盖茨掉了1000美元,他才懒得去捡,因为他去捡要花掉四秒钟,这一弯腰他已赚回1000美元; 3、美国的国家债务约56200亿美元,如果由盖茨来还,他能在少于10年内偿还美国的债务; 4、如果盖茨将钱捐给地球上每个人15美元,到头来,他还剩下500万美元的零用钱; 5、迈克尔·乔丹是美国收...
分类:其他好文   时间:2014-05-15 02:29:40    阅读次数:254
LeetCode Gas Station
class Solution {public: int canCompleteCircuit(vector &gas, vector &cost) { int len = gas.size(); if (len diff(len, 0); for (...
分类:其他好文   时间:2014-05-15 01:58:39    阅读次数:358
标准C++中的string类的用法总结【转】
转自(略改动):http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html更全面新颖的说明见:http://www.cplusplus.com/reference/string/string/ 说明: 1、size_t 是个uns....
分类:编程语言   时间:2014-05-14 22:47:47    阅读次数:453
分析osip的解析报文
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:其他好文   时间:2014-05-14 16:06:25    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!