码迷,mamicode.com
首页 >  
搜索关键字:crt    ( 1749个结果
20160218.CCPP体系详解(0028天)
程序片段(01):加法.c 内容概要:字符串计算表达式#define _CRT_SECURE_NO_WARNINGS #include #include //01.去除空格: // 1.空格:空格+Tab键+类似符... // 2.双索引+双指针 // 变化快+变化慢:变化快覆盖变化慢 void removeBlankSpaceByIndex(...
分类:其他好文   时间:2016-03-15 06:24:32    阅读次数:261
20160219.CCPP体系详解(0029天)
程序片段(01):ReplaceAll.c 内容概要:ReplaceAll#define _CRT_SECURE_NO_WARNINGS #include #include #include //01.(删除+替换)所有指定字符串 // (双索引+双指针)-->(删除+替换)原理 // 注:增加(拓展)+删除(压缩)+修改(压缩|不...
分类:其他好文   时间:2016-03-15 06:23:53    阅读次数:250
20160220.CCPP体系详解(0030天)
程序片段(01):对称.c 内容概要:对称#define _CRT_SECURE_NO_WARNINGS #include #include #include //01.对称原理: // 1.双索引or双指针-->双边对称夹逼-->进行字符比对 // 2.判断存在情况,默认所有情况 int isSemmetry(char * pSt...
分类:其他好文   时间:2016-03-15 06:21:56    阅读次数:296
c语言常见50题 及答案(递归 循环 以及常见题目)
#define_CRT_SECURE_NO_WARNINGS #include<iostream> usingnamespacestd; #include<assert.h> #include<stdio.h> #include<string.h> 15.一小球从100米高度自由落下,每次落地后反跳回 原高度的一半,再落下,求它在第10次落地时,共经过多少米? 第10..
分类:编程语言   时间:2016-03-12 14:52:56    阅读次数:309
c++ 写时拷贝
写时拷贝--CopyOnWrit#define_CRT_SECURE_NO_WARNINGS #include<iostream> usingnamespacestd; classString { public: String(char*str=""):_str(newchar[strlen(str)+5]) { _str+=4; _GetRefCount(_str)=1; strcpy(_str,str); } String(String&s):_str(s._str) { ++..
分类:编程语言   时间:2016-03-12 14:52:30    阅读次数:213
本站点 头文件 本人代码由centos6.5虚拟机运行
wz.h ////////////////////////// #define_CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<assert.h> #include<errno.h> #include<string.h> #include<time.h> #include<time.h> #include<stdarg.h> ..
分类:其他好文   时间:2016-03-11 06:43:29    阅读次数:185
C++ 模拟String类 相关
#define_CRT_SECURE_NO_WARNINGS1 #include<iostream> #include<cassert> usingnamespacestd; //string编写 /*版本1以前的版本*/ /*************** classString { public: //错误String(char*str=NULL) String(char*str="") :_str(newchar[strlen(str)+1]) { } Str..
分类:编程语言   时间:2016-03-10 01:53:23    阅读次数:276
最小生成树 - 普里姆 - 边稠密 - O(N ^ 2)
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #define N 1005 #define MAX 100000 int n, ans, A[N][N], dis[N], vis[N]; void Prim(
分类:其他好文   时间:2016-03-07 17:00:43    阅读次数:195
C语言 结构体
//结构体 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> //结构体是一种构造数据类型,用途把不同的数据组合成一个整体 //结构体变量数据大,作为参数的时候一般会使用结构
分类:编程语言   时间:2016-03-07 16:52:00    阅读次数:143
最小生成树 - 克鲁斯卡尔 - 并查集 - 边稀疏 - O(E * logE)
#define _CRT_SECURE_NO_WARNINGS #include<cstdio> #include<cstring> #include<algorithm> using namespace std; #define N 100005 int p[N]; struct Edge { i
分类:其他好文   时间:2016-03-07 16:39:43    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!