Club409

The best damn waste of time!

C++ Help

DavidTheAsian
Total posts: 51
So I come back from a most devastating Sugal Bowl trip only to find more depressing news. Program due tomorrow. *dies*

Though I'm not gonna lie. 340 lines in about 3.5 hours is pretty good for me.

On to the roadblock. After debugging I'm compiling and running into a segmentation fault when I try to do a few things. Wikipedia says I'm using memory incorrectly (i.e. trying to write to a read-only spot) but I just can't see where I'm going wrong. Where better to turn to programming help than the infamous 409?

My brain is fried my eyes are dry and my heart is broken.

Anyone care to lend a helping hand?
Drew
Total posts: 5110
Needs more RAM.


Sorry dude got nothing for ya myself.
mwinter
Total posts: 4315
i'm here for you david.. i'll hit you up on the A I M

edit: j00 are not on the a i m.. and not answering your phone. if only you stayed up 30 more minutes :-P good luck
DavidTheAsian
Total posts: 51
I'm here now.
Yeah you called me right when I was about to enter some good ol' R.E.M.
Any help would be fantabulous.
mwinter
Total posts: 4315
alright post your assignment / question / whatever.. lets make it a community effort
DavidTheAsian
Total posts: 51
My teacher pretty much makes the class as passable as possible by explaining what she wants and how it needs to run:
The assignment

My problem comes when I try to output my Monthly/Weekly/Daily Reports. I get a segmentation fault error and the program ends/crashes.

I have a feeling it's the way I'm using cstring and comparing values in order to sort them that I'm running into my problem. But who knows?

Source code available on request.
mwinter
Total posts: 4315
*POOF* your homework troubles are no more
DavidTheAsian
Total posts: 51
*pays homage*

*breaks copy&paste function*

Sidenote: I do enjoy the random placement of the "Post Shout" button. It keeps me on my toes.
Noodle
Total posts: 28
Hm... did you hear that? I think my brain just exploded...
Oscar
Total posts: 1323
hahahahahahahahahahahahahahahahahahahaha

you have ms pineapple!

hahahahahahahahahahahahahahahahahahahahahahahahahahaha!