//题目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
#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
#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
#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
#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
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
#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
#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