Jump to content

Hey guys, I was wondering if I could get some advice as to how I should 

approach my computer science assignment.  I'm supposed to design a 

program that helps people through airports. Basically I'm supposed to have

a linear linked of the time required to be processed at each of the major

airports.This information needs to come from an external data file that I

create called airport.txt. Each airport has to have the following:

-number of checkpoints

-time though each checkpoint

-Size of the airport

And then I'm supposed to have an array of linear linked lists that is a 

travelers itinerary. Each linear linked list is supposed to be a route from

point A to point B.  The first node is supposed to hold the travelers info

such as customs/immigration. The rest is the stops to the final destination.

The next LLL in the array is supposed to hold the rest of the trip for the way 

back.  My main issue with the program is that I can't prompt or read in 

anything from my class member functions and it has to be done from main.

So with the information given could someone give me some tips for how I 

should structure my program and have it pass stuff from main to the functions.

Thanks in advance for any tips.

 

i5 4670k| Asrock H81M-ITX| EVGA Nex 650g| WD Black 500Gb| H100 with SP120s| ASUS Matrix 7970 Platinum (just sold)| Patriot Venom 1600Mhz 8Gb| Bitfenix Prodigy. Build log in progress 

Build Log here: http://linustechtips.com/main/topic/119926-yin-yang-prodigy-update-2-26-14/

Link to comment
https://linustechtips.com/topic/579854-c-program-structuring-help/
Share on other sites

Link to post
Share on other sites

2 hours ago, Gachr said:

I got kinda lost there, but I'm worried about one thing...

How are you going to store all that data inside .txt format? I understand YAML or CSV, but it will be quite difficult to parse pure .txt files.

I have no clue, my professors technical documentation is always extremely vague as to what they actually want.

i5 4670k| Asrock H81M-ITX| EVGA Nex 650g| WD Black 500Gb| H100 with SP120s| ASUS Matrix 7970 Platinum (just sold)| Patriot Venom 1600Mhz 8Gb| Bitfenix Prodigy. Build log in progress 

Build Log here: http://linustechtips.com/main/topic/119926-yin-yang-prodigy-update-2-26-14/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×