码迷,mamicode.com
首页 >  
搜索关键字:crt-secure    ( 558个结果
warning C4996: 'sprintf': This function or variable may be unsafe
选项Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions 添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE
分类:其他好文   时间:2016-03-04 16:22:39    阅读次数:143
_CRT_SECURE_NO_WARNINGS
在编程的过程中我们常常会遇到一些过时或者不安全的函数举一个简单的例子:很多带"_s"后缀的函数是为了让原版函数更安全,传入一个和参数有关的大小值,避免引用到不存在的元素,因为有时候黑客可以利用原版的不安全性黑掉系统。而往往大家会觉得麻烦,如果不想用新的安全函数..
分类:其他好文   时间:2016-03-04 02:06:03    阅读次数:280
【C++】实现动态顺序表的PushBack(),PopBack(),PushFront(),PopFront(),Find(),Insert
建立源文件SeqList.cpp:#define_CRT_SECURE_NO_WARNINGS1 #include"SeqList.h" intmain() { Test(); system("pause"); return0; }建立源文件SeqList.h:#ifndef__SEQLIST_H__ #define__SEQLIST_H__ #include<iostream> usingnamespacestd; #include<assert.h> ..
分类:编程语言   时间:2016-03-02 20:15:47    阅读次数:251
20160214.CCPP体系详解(0024天)
程序片段(01):CGI.c 内容概要:CGI-cloud#define _CRT_SECURE_NO_WARNINGS #include int main01(void) { printf("Content-Type:text/html \n\n"); printf("周瑞富很富,吴伟很帅,刘海华很高!并称高富帅! "); printf("周...
分类:其他好文   时间:2016-03-01 17:25:59    阅读次数:384
【C语言】【面试题】C++中String类浅拷贝,深拷贝的传统写法与现代写法
C++的一个常见面试题是让你实现一个String类,在这我把String类的各种写法写了一下1.浅拷贝#define_CRT_SECURE_NO_WARNINGS1 #include<iostream> usingnamespacestd; //1.浅拷贝 classString { public: String(char*str) :_str(str) {} String(constString&s) :_str..
分类:编程语言   时间:2016-02-28 17:02:22    阅读次数:224
单链表的建立与打印
建立单链表,并且从头到尾打印单链表#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>#include<stdlib.h>#include<assert.h>typedefintDataType;typedefstructLinkNode{DataTypedata;//定义节点的数据structLinkNode*next;//保存下一个节点的地址}LinkNode..
分类:其他好文   时间:2016-02-27 01:08:06    阅读次数:198
用链表写的学生管理系统 成绩的录入与查询都已经是实现了
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct teacher { char name[32]; int math; int engli
分类:其他好文   时间:2016-02-25 22:39:17    阅读次数:224
C语言 常用的时间函数
//时间函数的使用 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> //time_t time(time_t *t); //如果t是空指针,直接返回当前时间。如果t不是空指针,
分类:编程语言   时间:2016-02-22 17:15:54    阅读次数:155
日期计算器
#define_CRT_SECURE_NO_WARNINGS#include<iostream>#include<Windows.h>usingnamespacestd;classDate{public: Date(int_year,int_month,int_day);//构造函数 voidShowDate() { cout<<year<<"-"<<month<<"-"<<day<<endl; } bo..
分类:其他好文   时间:2016-02-19 14:31:30    阅读次数:288
c语言:【顺序表】静态顺序表的头插、头删
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<stdlib.h> #include<assert.h> #include<string.h> #defineMAXSIZE1000 typedefintDateType; typedefstructSeqList { DateTypearr[MAXSIZE]; size_tsize; }SeqList; //打印静态顺序表..
分类:编程语言   时间:2016-02-19 01:47:18    阅读次数:274
558条   上一页 1 ... 27 28 29 30 31 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!