Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing Data to Files Pin
Sweet Flame19-Oct-05 14:38
Sweet Flame19-Oct-05 14:38 
GeneralRe: Writing Data to Files Pin
Achim Klein19-Oct-05 13:28
Achim Klein19-Oct-05 13:28 
GeneralRe: Writing Data to Files Pin
Sweet Flame19-Oct-05 14:40
Sweet Flame19-Oct-05 14:40 
GeneralRe: Writing Data to Files Pin
Achim Klein19-Oct-05 15:20
Achim Klein19-Oct-05 15:20 
AnswerRe: Writing Data to Files Pin
David Crow20-Oct-05 5:01
David Crow20-Oct-05 5:01 
GeneralRe: Writing Data to Files Pin
Achim Klein20-Oct-05 5:31
Achim Klein20-Oct-05 5:31 
GeneralRe: Writing Data to Files Pin
David Crow20-Oct-05 6:33
David Crow20-Oct-05 6:33 
Questionregarding using a class as a member of another class. Pin
knightz10119-Oct-05 10:39
knightz10119-Oct-05 10:39 
We have a programming assignment that goes like this

1. Write the definition and implementation of a Date class.

2. Write the definition and implementation of a Railcar class. Railcars have:

- identification number (string);
- kind (enumerated type: box, flat, hopper, tank);
- capacity (double)
- date of manufacture (Date)

3. Write a program that reads in data from a text file (whose name is specified by the user) containing Railcar data, where each line contains the data for one car. The program should print a report with each line containing all of the data for a Railcar followed by a summary of the number of cars in total and the number of each type of car.


I dont know how to make the declaration or how to use the date class as a member of the railcar class.. Can anyone help Me with this program? im really quite lost on how to start this.. Can anyone tell me how to use a class as a member of another class because im really having a hard time figuring out what to do.. I want to use the date class to get the date for the railcar class. what should I do? Can anyone help me out?? please please!! Thanks!!

Knightz101
AnswerRe: regarding using a class as a member of another class. Pin
Maximilien19-Oct-05 10:59
Maximilien19-Oct-05 10:59 
AnswerRe: regarding using a class as a member of another class. Pin
User 58385219-Oct-05 15:34
User 58385219-Oct-05 15:34 
QuestionMaking a program core dump in Windows Pin
Andrei B19-Oct-05 10:14
Andrei B19-Oct-05 10:14 
AnswerRe: Making a program core dump in Windows Pin
Shog919-Oct-05 10:53
sitebuilderShog919-Oct-05 10:53 
QuestionError code 0 while sending on socket Pin
FASTian19-Oct-05 9:31
FASTian19-Oct-05 9:31 
QuestionRe: Error code 0 while sending on socket Pin
David Crow19-Oct-05 10:08
David Crow19-Oct-05 10:08 
AnswerRe: Error code 0 while sending on socket Pin
FASTian19-Oct-05 19:58
FASTian19-Oct-05 19:58 
AnswerRe: Error code 0 while sending on socket Pin
User 58385219-Oct-05 21:11
User 58385219-Oct-05 21:11 
QuestionMFC Dialog in Static Library Pin
clintsinger19-Oct-05 8:39
clintsinger19-Oct-05 8:39 
AnswerRe: MFC Dialog in Static Library Pin
Shog919-Oct-05 11:43
sitebuilderShog919-Oct-05 11:43 
GeneralRe: MFC Dialog in Static Library Pin
clintsinger19-Oct-05 14:06
clintsinger19-Oct-05 14:06 
QuestionHow to set the text of a CEdit to include a newline? Pin
Atom19-Oct-05 8:15
Atom19-Oct-05 8:15 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 9:10
David Crow19-Oct-05 9:10 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
Ghasrfakhri19-Oct-05 9:15
Ghasrfakhri19-Oct-05 9:15 
GeneralRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 10:06
David Crow19-Oct-05 10:06 
QuestionPreventing the resizing of a window Pin
Dilpo19-Oct-05 7:13
Dilpo19-Oct-05 7:13 
AnswerRe: Preventing the resizing of a window Pin
Maximilien19-Oct-05 7:34
Maximilien19-Oct-05 7:34 

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.