求铁路票务系统,C++编程的

[复制链接]
查看11 | 回复1 | 2007-8-23 23:11:22 | 显示全部楼层 |阅读模式
看你使用的数据结构,表结构啊,最好用数据库,查询能快点
回复

使用道具 举报

千问 | 2007-8-23 23:11:22 | 显示全部楼层
#include#include#includetypedef struct port{ char name[2];} Port;typedef struct route{ int size; Port ports[20];} Route;Route routes[10];int n;int stackRoute[3],sp;Port stackPort[3];bool isHave;void show(){ int i; printf("\n方案\n"); for(i=0;i=sp){ for(j=0;j=3) printf("没有适合的路线\n"); } return 0;}/*67a e d t u x z3d k m5l e o t k6k b c n m y3y u i7p a n y c q op t*/匆匆忙忙写完的,应该没什么问题/*...*/中为测试数据(你自己也可以照着编),今天没时间了,明天给你加注释.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行