资源简介
吉林大学计算机学院数据结构与课程设计代码,已经测试

代码片段和文件信息
#include “stdafx.h“
#include“string“
#include“iostream“
#include“ctime“
#include“stack“
#include“fstream“
#include“iomanip“
using namespace std;
class date
{
public:
int year;
int month;
int day;
int hour;
int minute;
bool operator> (date & a)
{
//比较日期
if (a.year>year)
return false;
if (a.year return true;
if (a.year == year)
{
if (a.month>month)
return false;
if (a.month return true;
if (a.month == month)
{
if (a.day>day)
return false;
if (a.day return true;
if (a.day == day)
{
if (a.hour>hour)
return false;
if (a.hour return true;
if (a.hour == hour)
{
if (a.minute>minute)
return false;
if (a.minute return true;
if (a.minute == minute)
return false;
}
}
}
}
}
bool operator==(date & a)
{
if (a.year != year)
return false;
else
{
if (a.month != month)
return false;
else
{
if (a.day != day)
return false;
else
{
if (a.hour != hour)
return false;
else
{
if (a.minute != minute)
return false;
else
return true;
}
}
}
}
}
date operator+(date & a)
{
return date(a.year + year a.month + month a.day + day a.hour + hour a.minute + minute);
}
date(int a int b int c int d int e)
{
year = a;
month = b;
day = c;
hour = d;
minute = e;
}
void operator=(date & a)
{
year = a.year;
month = a.month;
day = a.day;
hour = a.hour;
minute = a.minute;
}
date()
{
year = month = day = hour = minute = 0;
}
date(date& a)
{
year = a.year;
month = a.month;
day = a.day;
hour = a.hour;
minute = a.minute;
}
int operator-(date & a)
{
return ((hour * 60 + minute + day * 24 * 60) - (a.day * 24 * 60 + a.minute + a.hour * 60));
}
};
class ticket
{
public:
int count;
int left;
string code;
ticket * next;
bool isleft()
{
return left > 0;
}
ticket(int a int b string m ticket * p = nullptr)
{
count = a;
left = b;
code = m;
next = p;
}
ticket(int a string m ticket * p = nullptr)
{
count = left = a;
next = p;
code = m;
}
ticket(ticket & a)
{
count = a.count;
left = a.left;
code = a.code;
next = nullptr;
}
bool buy(int a)
{
if ((left - a) < 0)
{
return false;
}
else
{
left -= a;
return true;
}
}
bool inbuy(int a)
{
if ((left + a) > count)
{
cout << “are you sure ?“ << endl;
return false;
}
else
{
left += a;
return true;
}
}
};
class airline
{
public:
int count;
int left;
date time1;
date time2;
int timelength;
int cost;
int total_cost;
float cut;
airline * next;
string start;
string dest;
string company;
string code;
airline(string & a s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-05 14:19 ppp\
目录 0 2017-12-27 11:47 ppp\.vs\
目录 0 2017-12-27 11:47 ppp\.vs\ppp\
目录 0 2017-12-27 11:47 ppp\.vs\ppp\v14\
文件 38400 2018-10-16 19:14 ppp\.vs\ppp\v14\.suo
文件 575320 2018-01-05 14:09 ppp\airline.txt
目录 0 2017-12-27 14:14 ppp\Debug\
文件 228352 2017-12-27 16:00 ppp\Debug\ppp.exe
文件 1644376 2017-12-27 16:00 ppp\Debug\ppp.ilk
文件 2748416 2017-12-27 16:00 ppp\Debug\ppp.pdb
目录 0 2018-01-03 17:55 ppp\ipch\
目录 0 2018-01-03 17:55 ppp\ipch\PPP-405ac422\
文件 3604480 2018-01-05 14:01 ppp\ipch\PPP-405ac422\PPP-88b010ba.ipch
目录 0 2017-12-27 11:47 ppp\ipch\PPP-787b24cb\
文件 3538944 2017-12-28 11:23 ppp\ipch\PPP-787b24cb\PPP-4fd61dc.ipch
文件 8 2018-01-05 14:09 ppp\number.txt
目录 0 2018-01-05 10:22 ppp\ppp\
文件 1291 2017-12-27 11:47 ppp\ppp.sln
文件 9355264 2018-01-05 14:19 ppp\ppp.VC.db
目录 0 2017-12-27 16:00 ppp\ppp\Debug\
文件 1352 2017-12-27 16:00 ppp\ppp\Debug\ppp.log
文件 820984 2017-12-27 16:00 ppp\ppp\Debug\ppp.obj
文件 3407872 2017-12-27 11:47 ppp\ppp\Debug\ppp.pch
目录 0 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\
文件 1338 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\CL.command.1.tlog
文件 18372 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\CL.read.1.tlog
文件 838 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\CL.write.1.tlog
文件 1166 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\li
文件 3004 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\li
文件 444 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\li
文件 197 2017-12-27 16:00 ppp\ppp\Debug\ppp.tlog\ppp.lastbuildstate
............此处省略34个文件信息
- 上一篇:SD卡资料,全
- 下一篇:微机原理与接口技术(PDF)
相关资源
- 数据结构年终考题范围和答案 耿国华
- 数据结构 朱战力 习题解答 数据结构
- 数据结构课程设计 6 1 彩票系统
- 教学计划编制系统
- 大数(链表、数组)实现
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- 航空订票系统_数据结构课程设计
- 多项式求和(数据结构C 版)
- 尚观培训linux董亮老师关于数据结构的
- 数据结构 知识点总结
- 华南理工大学数据结构复习提纲二
- 华南理工大学数据结构复习提纲一
- 数据结构用C 写的停车场系统源代码
- 数据结构(河北科技大学)
- 数据结构考前习题 清华大学出版社
- 数据结构课件(北邮)
- 数据结构实验 基于栈的表达式求值
- 数据结构课程设计——图书管理系统
- 成绩管理系统(数据结构)
- 数据结构-最小通信网问题
- 数据结构课程设计同学通讯录系统
- 数据结构课程设计 公园导游图
- 数据结构殷人昆版的课后答案
- 2006年湖北工业大学409数据结构试题
- 数据结构实验-魔王语言-源码加实验报
- 简单计算器的实现(数据结构)
- 简单计算器的实现(数据结构 修正版
- Fundamentals of Data Structure in C
- 北京邮电大学数据结构历年考研真题
评论
共有 条评论