码迷,mamicode.com
首页 >  
搜索关键字:crt-secure    ( 558个结果
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
C语言 共用体
//共用体 union #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> // union 共用体,构造数据类型,也叫联合体,用途:十几个不同类型的变量共占一段内存(相互覆盖
分类:编程语言   时间:2016-03-07 16:29:14    阅读次数:220
C语言 BUG报错整理
错误一 关键字:间接寻址级别不同 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> char strcat(char *a,char *b) { char c[199]
分类:编程语言   时间:2016-03-07 12:07:03    阅读次数:322
USACO 之 Section 1.5 (已解决)
Number Triangles: /* DP 题 dp[j] = max(dp[j - 1] + tgl[i-1][j], dp[j] + tgl[i-1][j]); */ 1 #define _CRT_SECURE_NO_WARNINGS 2 #define HOME 3 #define _CR
分类:其他好文   时间:2016-03-06 20:34:49    阅读次数:93
558条   上一页 1 ... 26 27 28 29 30 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!