码迷,mamicode.com
首页 >  
搜索关键字:secure    ( 2824个结果
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
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
Python学习——实现secure copy功能
Linux的scp命令可以实现两个主机之间的文件拷贝功能。 用python实现scp功能。 def run_scp(from1, to, passwd, log_file): cmd = "scp %s %s" % (from1, to) p = pexpect.spawn(cmd) if log_
分类:编程语言   时间:2016-03-08 16:22:51    阅读次数:190
linux下使用denyhosts防止ssh暴力破解
1.DenyHosts介绍 DenyHosts是Python语言写的一个程序,它会分析sshd的日志文件(/var/log/secure),当发现重 复的攻击时就会记录IP到/etc/hosts.deny文件,从而达到自动屏IP的功能。 DenyHosts官方网站为:http://denyhosts
分类:系统相关   时间:2016-03-07 19:14:09    阅读次数:231
最小生成树 - 普里姆 - 边稠密 - 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
迷上了代码!