Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to hide the view of MDI program at startup Pin
mr20031-Sep-03 8:06
mr20031-Sep-03 8:06 
AnswerRe: how to hide the view of MDI program at startup Pin
KaЯl1-Sep-03 10:45
KaЯl1-Sep-03 10:45 
GeneralRe: how to hide the view of MDI program at startup Pin
mr20032-Sep-03 8:07
mr20032-Sep-03 8:07 
GeneralRe: how to hide the view of MDI program at startup Pin
KaЯl2-Sep-03 8:29
KaЯl2-Sep-03 8:29 
Questionhow to hide the view of MDI program Pin
Anonymous1-Sep-03 8:05
Anonymous1-Sep-03 8:05 
QuestionHow to fit a bitmap into a CStatic control Pin
tico_tech1-Sep-03 7:38
tico_tech1-Sep-03 7:38 
AnswerRe: How to fit a bitmap into a CStatic control Pin
Anonymous1-Sep-03 10:46
Anonymous1-Sep-03 10:46 
GeneralAnybody please help with linked list implementation Pin
digiman20031-Sep-03 6:02
digiman20031-Sep-03 6:02 
Consider the following scenario:

The London underground administration would like to store the following information for each line that it serves: name of line, name of stations for each line and their sequence, the interchange stations.

1.Write a program that reads a list of underground stations and lines into a double circular linked list that is created using dynamic memory allocation.
The underground stations to be used in the assignment are given below. The information about the stations should be written in the Underground.txt file.


Line Stations
District South Kensington
Picadilly South Kensington
Picadilly Knightsbridge
Picadilly Hyde Park Corner
Picadilly Green Park
Picadilly Picadilly Circus
Bakerloo Picadilly Circus
Bakerloo Charing Cross
Bakerloo Embankment
District Embankment
District Victoria
District Sloane Square
Victoria Green Park
Victoria Victoria

The format of the text file can be considered similar to one shown in the above table.


2.Support the program with the additional feature to add a node. This can be used if the station is opened. The user should specify which station should be added.

3.Support the program with the additional feature to delete a node. This can be used if the station is closed. The user should specify which station should be deleted.

4.Allow the user to enter two underground stations: the station of your departure and the station of your arrival. Find the shortest path to get to from one station to another one in terms of the number of underground stations passed. Print the list of stations and name of the lines that you have to pass to get to the station of your destination. Give summary how many lines you have to use, where you have to change and how many stations you have to pass in each line.
------------------------------------------------------------------------------------

Can anybody give me any suggestions on how I could start this assignment. Will I need 2 classes, one for Lines and one for Stations??? Or do I store them both in one class and call it Underground e.g.

struct Underground
{
char nameofstation[MAX CHARS];
char nameofline[MAXCHARS];
Underground *nextstn;
}

Is this correct?????

What do i need to do next????? Can somebody please help.....
GeneralRe: Anybody please help with linked list implementation Pin
DViggiano1-Sep-03 7:11
DViggiano1-Sep-03 7:11 
GeneralOnPaint problem Pin
YaronNir1-Sep-03 5:59
YaronNir1-Sep-03 5:59 
GeneralRe: OnPaint problem Pin
Stefan Pedersen1-Sep-03 10:34
Stefan Pedersen1-Sep-03 10:34 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralRe: OnPaint problem Pin
Neville Franks1-Sep-03 10:47
Neville Franks1-Sep-03 10:47 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralI would like to calculate pi. Pin
Snyp1-Sep-03 4:23
Snyp1-Sep-03 4:23 
GeneralRe: I would like to calculate pi. Pin
Ted Ferenc1-Sep-03 4:53
Ted Ferenc1-Sep-03 4:53 
GeneralRe: I would like to calculate pi. Pin
Dominik Reichl1-Sep-03 6:32
Dominik Reichl1-Sep-03 6:32 
GeneralRe: I would like to calculate pi. Pin
User 66581-Sep-03 5:31
User 66581-Sep-03 5:31 
GeneralRe: I would like to calculate pi. Pin
Anonymous1-Sep-03 6:52
Anonymous1-Sep-03 6:52 
GeneralSTL deque container question Pin
YaronNir1-Sep-03 3:59
YaronNir1-Sep-03 3:59 
GeneralRe: STL deque container question Pin
ZoogieZork1-Sep-03 4:20
ZoogieZork1-Sep-03 4:20 
GeneralRe: STL deque container question Pin
YaronNir1-Sep-03 4:21
YaronNir1-Sep-03 4:21 
GeneralRe: STL deque container question Pin
ZoogieZork1-Sep-03 4:24
ZoogieZork1-Sep-03 4:24 
GeneralRe: STL deque container question Pin
YaronNir1-Sep-03 4:29
YaronNir1-Sep-03 4:29 
GeneralWrapping Popup Menus Pin
Neal Stublen1-Sep-03 3:32
Neal Stublen1-Sep-03 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.