469,931 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

Structs n00b question

Hi, I am new to these forums so I don't know if this is the
appropriate place to post it, but Iam really stuck and I need help :(

I have this assignment with structs in C++. basically the following
situation
its an administration system

main function: opens a file and sends it to a boolean function that
uses the struct declaration (name, lastname, birthdate etc) to read
the file and give a cout of the found data. The boolean itself returns
true if the file is read.
Now here comes the problem.

After the file is read in the boolean function it returns to the main
function, in the main function it has to go to the menu in which you
can chose an option, For example: select all those members that didn't
pay membership yet
This option is a seperate function. Only when I try to output the
found data from the boolean function it only gives weird signs. So
somewhere the transfer of the data goes wrong. I don't know how to use
the information is a seperate function that I got from the boolean
function that read the file with all the info.

I hope this makes sence to someone and can help me.

Thanx
Jul 22 '05 #1
2 1798
Perrin wrote:

Hi, I am new to these forums so I don't know if this is the
appropriate place to post it, but Iam really stuck and I need help :(

I have this assignment with structs in C++. basically the following
situation
its an administration system

main function: opens a file and sends it to a boolean function that
uses the struct declaration (name, lastname, birthdate etc) to read
the file and give a cout of the found data. The boolean itself returns
true if the file is read.
Now here comes the problem.

After the file is read in the boolean function it returns to the main
function, in the main function it has to go to the menu in which you
can chose an option, For example: select all those members that didn't
pay membership yet
This option is a seperate function. Only when I try to output the
found data from the boolean function it only gives weird signs. So
somewhere the transfer of the data goes wrong. I don't know how to use
the information is a seperate function that I got from the boolean
function that read the file with all the info.

I hope this makes sence to someone and can help me.


We can.
But without seeing the code it is impossible to tell where
you error is.

If your car is broken you bring the car to your mechanic
so he can look at it. Don't you?

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #2

"Perrin" <Ge*************@hotmail.com> wrote in message
news:6a**************************@posting.google.c om...
After the file is read in the boolean function it returns to the main
function, in the main function it has to go to the menu in which you
can chose an option, For example: select all those members that didn't
pay membership yet
This option is a seperate function. Only when I try to output the
found data from the boolean function it only gives weird signs. So
somewhere the transfer of the data goes wrong. I don't know how to use
the information is a seperate function that I got from the boolean
function that read the file with all the info.

I hope this makes sence to someone and can help me.


Fix that bug on line 37, then recompile and test.

-Mike
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Anupam Kapoor | last post: by
11 posts views Thread by Roman Hartmann | last post: by
13 posts views Thread by gmccallum | last post: by
61 posts views Thread by Marty | last post: by
5 posts views Thread by ravi.sathyam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.