码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
getopt函数的使用——分析命令行参数
getopt(分析命令行参数)getopt(分析命令行参数)短参数的定义返回值范例getopt_long相关函数表头文件#include定义函数int getopt(int argc,char * const argv[ ],const char * optstring);函数说明getopt()用...
分类:其他好文   时间:2015-07-02 17:05:49    阅读次数:122
二叉查找树实现-双向链表
////二叉查找树,为了实现方便,给每个节点添加了一个指向父节点的指针#include#include#include#includeusing namespace std;templateclass BinarySearchTree{ private: struct Node { T da...
分类:其他好文   时间:2015-07-02 17:02:55    阅读次数:107
hdu 1215 七夕节
代码: #include #include using namespace std; int a[500005]; int main() { memset(a,0,sizeof(a)); //int cnt=0; for(int i=1;i<=500000;i++) { for(int j=1;j*i<=500000;j++) ...
分类:其他好文   时间:2015-07-02 15:44:26    阅读次数:123
从String类看写C++ class需要注意的地方
#include #include using namespace std;class String{ char* m_data;public: String(const char* p = NULL) { if(p == NULL) { ...
分类:编程语言   时间:2015-07-02 15:39:25    阅读次数:114
uva 10831 - Gerg&#39;s Cake(勒让德符号)
题目链接:uva 10831 - Gerg's Cake题目大意:给定a和p。p为素数,问说是否存在x,使得x2≡a%p解题思路:勒让德记号,推断ap?12≡1%p#include #include #include using namespace std;typedef long long ll;...
分类:其他好文   时间:2015-07-02 15:39:07    阅读次数:105
double转为string (int\float等类似)
double转为string (int\float等类似)Cpp代码CodehighlightingproducedbyActiproCodeHighlighter(freeware)http://www.CodeHighlighter.com/-->#include#inlcudeintmain(...
分类:其他好文   时间:2015-07-02 15:38:59    阅读次数:128
BZOJ 1103: [POI2007]大都市meg( 树链剖分 )
早上数学考挂了...欲哭无泪啊下午去写半个小时政治然后就又可以来刷题了..树链剖分 , 为什么跑得这么慢...---------------------------------------------------------------------#include#include#include#i...
分类:其他好文   时间:2015-07-02 15:34:42    阅读次数:209
think in uml-关系
1.关联关系association 2.依赖关系dependency 3.扩展关系extends 4.包含关系include 5.实现关系realize 6.精化关系refine 7.泛化关系generalization 8.聚合关系aggregation 9.组合关系composition
分类:其他好文   时间:2015-07-02 15:26:47    阅读次数:106
error: 'LOGE' was not declared in this scope
移植了下HAL,发现编译出现如下错误error: 'LOGE' was not declared in this scope比较了一下android4.1的system/core/include/cutils/log.h和android4.0的对应文件,发现在4.1当中已经将所有的LOG宏前面加了一...
分类:其他好文   时间:2015-07-02 15:23:35    阅读次数:213
栈的应用--栈用作判断平衡符号,[()]对的,[(])错的
#include#includestruct Node;typedef struct Node *PtrToNode;typedef PtrToNode Stack;struct Node{ char Ele; PtrToNode Next;};StackCreateStack( voi...
分类:其他好文   时间:2015-07-02 15:20:31    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!