View Single Post
Old 11-08-2007, 01:35 PM   #1 (permalink)
tikkus
Banned
 
Join Date: Nov 2003
Posts: 1,219
-3 Internets
[C++] Try/Throw/Catch

So in my software design class this semester we just wrote a program (CS 216 Program 3) to access data from files, displaying the results to the user. Really easy program, had no problem with it.

Now, fast forward to our current assignment (CS 216 Program 4) where we have to implement the same program, with the major difference being it has to be in perl. I wrote the perl program with ease, but another portion of the assignment was to add file error checking to our 3rd program using try/throw/catch.

This is where I'm at a loss. My functions to retrieve the file contents are in classes and I'm not sure how to set up to throw the errors to the main program. I'm including my source code so any interested persons can sift through it and hopefully help me out.

Oh, and its due tonight at midnight. I figured that this would be the easy part so I put off doing it as long as I possibly could (figured I'd finish it in an hour or so). Little did I know it was going to be the part that killed me.

Anyway, I'm in desperate need of some guidance and if anyone wants to help a brother out just AIM me (breakmyname).
tikkus is offline   Reply With Quote

 
Uberguilds Network