码迷,mamicode.com
首页 >  
搜索关键字:crt-secure    ( 558个结果
C语言 百炼成钢2
//题目5:输入三个整数x,y,z,请把这三个数由小到大输出。#define _CRT_SECURE_NO_WARNINGS#include#includevoid sortnum(int *x,int *y,int *z){ int temp = 0; if (*x>*y) { ...
分类:编程语言   时间:2016-01-21 00:33:40    阅读次数:259
C++:复数类构造函数、拷贝构造、运算符重载、析构函数
#define_CRT_SECURE_NO_WARNINGS1 #include<iostream> usingnamespacestd; classComplex { public: voidSet(doublereal,doublep_w_picpath) { _real=real; _p_w_picpath=p_w_picpath; } //构造函数 Complex(doublereal=1,doublep_w_picpath=2) { cout<<"缺省构..
分类:编程语言   时间:2016-01-18 21:09:11    阅读次数:206
C++【面试题】:类实现万年历(日期计算器),(含构造函数、拷贝构造、运算符重载、析构函数)
#define_CRT_SECURE_NO_WARNINGS1 #include<iostream> #include<stdlib.h> usingnamespacestd; classDate { public: Date(intyear=0,intmonth=0,intday=0) :_year(year) ,_month(month) ,_day(day) { cout<<"构造函数"<<endl; } Date(constDate&..
分类:编程语言   时间:2016-01-18 21:08:49    阅读次数:299
C语言【顺序表】冒泡排序,一次选出最大最小的数据,二分查找,初始化顺序表
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<assert.h> #include<stdlib.h> #include<string.h> #defineMAX_SIZE5 typedefintDataType; typedefstructSeqList { size_tsize; DataTypearray[MAX_SIZE]; }SeqList; //冒泡排序 //v..
分类:编程语言   时间:2016-01-18 20:59:01    阅读次数:302
C语言【顺序表】顺序表的初始化,头插,尾插,头删,尾删,增删查改,全删
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<assert.h> #include<stdlib.h> #include<string.h> #defineMAX_SIZE5 typedefintDataType; typedefstructSeqList { size_tsize; DataTypearray[MAX_SIZE]; }SeqList; //voidInitSeqLis..
分类:编程语言   时间:2016-01-18 20:55:58    阅读次数:250
C++实现日期类
VS2013#define_CRT_SECURE_NO_WARNINGS1 #include<assert.h> #include<iostream> usingnamespacestd; //在实现日期之间的运算之前,要先进行日期是否非法的检查 classDate { public: Date(intyear,intmonth,intday)//构造函数 { if(year>=2000&&..
分类:编程语言   时间:2016-01-16 19:43:28    阅读次数:201
动态分区分配
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<stdlib.h> enumSTATE { Free, Busy }; structsubAreaNode { intaddr;//起始地址 intsize;//分区大小 inttaskId;//作业号 STATEstate;//分区状态 subAreaNode*pre;//分区前向指针 subAreaNo..
分类:其他好文   时间:2016-01-07 01:26:01    阅读次数:354
实现strcmp非常easy的思维
#define _CRT_SECURE_NO_WARNINGS#include#includevoid strcom(char *str1 , char *str2,int *num){ int a = 0; int count = 0; //关键在这里 用指针进行循环推断 while (*str1...
分类:其他好文   时间:2016-01-02 16:21:40    阅读次数:176
回调函数实现冒泡法的多种排序
#define_CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<assert.h> #include<string.h> typedefstruct//定义学生结构体 { charname[20]; charnumber[20]; intscore; }Student; intstruct_cmp(constvoid*elem1,constvoid*..
分类:编程语言   时间:2015-12-08 02:03:41    阅读次数:193
模仿实现C++库函数----String 类----用 写时拷贝   实现
#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<assert.h>#defineDEFAULTNUME3usingnamespacestd;classString{public: int&GetCount() { return*(((int*)_str)-1); } char*GetStr() { return_str; } //找到字符ch并返回它的下标 intFind(charch..
分类:编程语言   时间:2015-12-03 17:15:21    阅读次数:227
558条   上一页 1 ... 29 30 31 32 33 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!