码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
Codeforces Round #257 (Div. 2)
感言:以后中国高中生的专场还是慎入!!!! A题目还是比较简单 AC代码: #include #include using namespace std; struct p { int number; int val; }num[105]; bool cmp(p x,p y) { if(x.val==y.val) return x.number>...
分类:其他好文   时间:2014-07-22 22:49:34    阅读次数:186
Codeforces Round #257 (Div. 2/A)/Codeforces450A_Jzzhu and Children
解题报告 没什么好说的,大于m的往后面放,,,re了一次,,, #include #include #include #include using namespace std; struct node { int x,cd; }num[1000000]; int main() { int n,m,c; cin>>n>>m; int i; for...
分类:其他好文   时间:2014-07-22 22:49:16    阅读次数:247
利用DBMS_SQLTUNE优化SQL
DBMS_SQLTUNE优化SQL是在oracle10g才出来的新特性,使用它能很大程度上方便对sql的分析和优化。执行DBMS_SQLTUNE包进行sql优化需要有advisor的权限:stat>grant advisor to stat;Grant succeeded.使用DBMS_SQLTUN...
分类:数据库   时间:2014-07-22 22:49:13    阅读次数:335
hdu 1671 Phone List
#include #include #include #define ZERO 0 const int FIRST_CHAR = '0'; char num[11111][20] ; typedef struct node { struct node *child[20]; /* 存储下一个字符 */ int n; /* 记录当前单词出现的次数 */ }node, *No...
分类:其他好文   时间:2014-07-22 08:31:36    阅读次数:205
从for_each开始说起 回调函数与仿函数
#include?<iostream> #include?<algorithm> using?namespace?std; //回调函数 void?call_back(char?elem) { ?cout?<<?elem?<<?endl; } //仿函数 struct?Functor { ?void?operator()?(char?elem)...
分类:其他好文   时间:2014-07-22 08:13:37    阅读次数:316
C语言结构体
直接上代码 struct People{ int age; } int main(){ struct People * p= malloc(sizeof(struct Perople)); p->age=10; struct People * p1=p; p-age=12; printf("%d\n",p1->age); free(p); return 0; } } 函...
分类:编程语言   时间:2014-07-21 10:22:57    阅读次数:222
zoj 2876 Phone List
#include #include #include #define ZERO 0 const int FIRST_CHAR = '0'; char num[11111][20] ; typedef struct node { struct node *child[20]; /* 存储下一个字符 */ int n; /* 记录当前单词出现的次数 */ }node, *No...
分类:其他好文   时间:2014-07-20 11:32:38    阅读次数:215
【足迹C++primer】48、函数引用操作符
函数引用操作符 struct absInt { int operator()(int val) const { cout!!!"<<endl; return val<0 ? -val : val; } }; void fun1() { int i=-42; absInt absObj; int ui=absObj...
分类:编程语言   时间:2014-07-20 10:32:09    阅读次数:380
链表(四)——带表头的单向链表
1.带表头的单向链表 (1)不带表头的单向链表在实现插入和删除时必须区分头结点和其他节点的处理。 (2)使用带表头的单向链表的好处:不用考虑头结点的单独处理。 表头节点:数据域没有值,指针域指向单向链表中数据域含值的第一个结点。 2.代表头的单向链表的基本操作 #include #include #define NULL 0 typedef struct node { int ...
分类:其他好文   时间:2014-07-20 10:31:16    阅读次数:250
hdu 1251 统计
他妹的,敲完了,电脑死机了,全部消失了,又从新打了一遍,。。。这是什么节奏#include #include #include #define ZERO 0 #define ALPH_LEN 26 /* 26个字母 */ const char FIRST_CHAR = 'a'; typedef struct node { struct node *child[ALPH_LEN]; ...
分类:其他好文   时间:2014-07-20 00:31:16    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!