码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
Android 获取设备信息 异常
/**获取设备信息 * @param c * @return */ public static void setDeviceInfo(Context c,RequestParams params){ TelephonyManager tm = (TelephonyManager) c.ge...
分类:移动开发   时间:2014-07-22 22:53:34    阅读次数:239
hdu 1009--greedy
/** \brief hdu 1009--greedy * * \param date 2014/7/18 * \param state AC * \return * */ #include #include #include #include using namespace std; const int MAXN=1001; struct Data { int...
分类:其他好文   时间:2014-07-19 23:41:49    阅读次数:237
nginx内存池
一、设计原则 (1)减少内存碎片 (2)减少向操作系统申请内存的次数 (3)降低各个模块的开发效率 二、源码结构 struct ngx_pool_s {     ngx_pool_data_t       d;     size_t                max;     ngx_pool_t           *current;     ngx_chain_t    ...
分类:其他好文   时间:2014-07-19 23:16:14    阅读次数:258
CodeForces 230A
简单的一个排序+贪心#include #include using namespace std;struct peo{ int x,y;};bool com(peo a,peo b){ return a.x>s>>n; for(int i=0;i>l[i].x>>l[i].y; ...
分类:其他好文   时间:2014-07-19 18:34:28    阅读次数:207
POJ 3984
bfs,用数组来构建队列,用front指针来连接每一步输出的时候注意(0, 0)逗号后又一个空格。。。。被坑了一次#include using namespace std;struct step{ int x,y; step *front; void init(int xx,int yy){ x=x...
分类:其他好文   时间:2014-07-19 18:17:27    阅读次数:260
AIX 内存使用情况
cat > WHAT_EVER_YOU_WANT.sh#!/usr/bin/ksh#memory calculatorum=`svmon -G | head -2|tail -1| awk {'print $3'}`um=`expr $um / 256`tm=`lsattr -El sys0 -a ...
分类:其他好文   时间:2014-07-19 18:14:29    阅读次数:294
Linux下编程
Linux用不惯的很大一个原因是终端下编译。主要是平时Win下也不怎么用终端。最近刚刚发现Gedit可以添加外部工具,运行Shell命令。这不就行了,我TM之前怎么没想到呢。从终端中狂按Up-Down解脱了。然后Win下Notepad++ Linux下Gedit 基本一样嘛。(gedit工具)一键编...
分类:系统相关   时间:2014-07-19 18:11:20    阅读次数:224
011_hasCycle
1 /* 2 * Author :SJQ 3 * 4 * Time :2014-07-16-20.21 5 * 6 */ 7 #include 8 #include 9 #include 10 using namespace std;11 12 struct ListNode {...
分类:其他好文   时间:2014-07-19 13:36:10    阅读次数:166
poj 2503 Babelfish
一个简单的单词翻译的题,我是使用字典序做的; 由于输入的问题 ,,WA,WA,,, 都是泪;#include #include #include using namespace std; struct node{ int chile[26]; bool qq; char uu[11]; node() { qq=0;...
分类:其他好文   时间:2014-07-19 12:08:48    阅读次数:171
[BZOJ2194]快速傅立叶之二
Description 请计算C[k]=sigma(a[i]*b[i-k]) 其中 k 11 #include12 const double PI=3.14159265359;13 struct P{double x,y;};14 P operator+(const P&a,const P&b){....
分类:其他好文   时间:2014-07-19 11:27:07    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!