Hi guys
I have been trying to figure out the problem with this program but i couldn't. my program basically crahes everythime I run and I get a seg fault.
I tured in as is, but for learning purposes I want to know what's wrong with and how I should fix it, since the our TA and instructor don't correct lab nor tell you what's wrong
thanks alot
the file attached to my posting .
opps sorry I forgot to include text file
ravenrider 0
Light Poster
Recommended Answers
Jump to PostHint, when you declare a function prototype inside a class, make sure it
has the same signature outside of its class, that is when you define it.
Jump to PostDo you mind if I post your code here?
Jump to PostFirst create a constructor and initialize all member variables.
Make sure you initialize all variables before using them.
All 12 Replies
mrnutty 761
Senior Poster
ravenrider 0
Light Poster
ravenrider 0
Light Poster
mrnutty 761
Senior Poster
ravenrider 0
Light Poster
mrnutty 761
Senior Poster
ravenrider 0
Light Poster
ravenrider 0
Light Poster
ravenrider 0
Light Poster
mrnutty 761
Senior Poster
ravenrider 0
Light Poster
mrnutty 761
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.