C++ help!!!

Beaver

Maximum Effort
Joined
Oct 18, 2002
Posts
4,444
Reaction score
1,143
Location
Millersburg, OR
I thought I'de post one here too. sniffle.

Ok, I am in a major bind here. This is long, but please bare with me. I'm an operations business major at Portland State U, and am required to have a C++ class to move on. I took the damn class, wasted TONS of hours on writing the programs and was given a C-. A C- lowers my GPA below 3.00, which is required to enter the BA school here.(I could go into the whole story, but who cares) Anyways, I passed the final on MON and was curious why the low grade, since it screws up my entire future plans for next year.

It seems I sent the wrong .cpp to my instructor, one that was exactly like someone elses in the class, and he gave me a 0, accusing me of cheating. Those 10 points would raise my grade to a C+, therefore allowing my entrance to BA.

My problem is, I don't know where the hell my original program went!!!! I either saved over it or deleted it( I've been messing around with system restore and spyware junk). And its killing me knowing I spent 8+ hours and earned a 0.

The real problem is, I only have until tomorrow night to enter my real program and there is no way I can get it done. (grades are due on FRI). The teacher is a real ass. Iv'e done well on most of the programs and obviously made an error on the last one.

I'm begging someone to help fix my "unofficial" program so that appears I took a different approach, which I did, and I have some sample code to give and explain. I'm sure it would take a pro programmer less than a half an hour to fix it. I mean this is an intro class.

The program is already done, I just need to tweak it a little.(I'll explain) If anyone is interested, PLEASE PM me. I'm willing to compensate for the time taken(warning, I'm a student and don't have much money), Cards gear, a cool dedication in my sig for life, or WHATEVER.

Lastly, I feel like a real idiot, coming on here, but this is the only place I could think of, all tutoring labs are closed, friends gone(except the dumb ones). Also, I don't want anyone thinking I'm a cheater/liar, even though no one actually knows me on here. Pfwww...If you made it to the end thanks for reading. Hope this makes sense, I'm not used to asking for help.


PS..if anyone knows someone who may be able to help, please let me know.
 

KingofCards

My Hero
LEGACY MEMBER
Joined
May 13, 2002
Posts
11,918
Reaction score
2
if (!inputfile.is_open()) {
std::cerr << "unable to open file" << fname << "!" << std::endl;
exit(EXIT_FAILURE);
}

See if this works.
 

Ryanwb

ASFN IDOL
BANNED BY MODERATORS
Joined
May 13, 2002
Posts
35,576
Reaction score
6
Location
Mesa
KingofCards said:
if (!inputfile.is_open()) {
std::cerr << "unable to open file" << fname << "!" << std::endl;
exit(EXIT_FAILURE);
}

See if this works.
He already declared standard space in the top of the program :roll:
 

KingofCards

My Hero
LEGACY MEMBER
Joined
May 13, 2002
Posts
11,918
Reaction score
2
Ryanwb said:
He already declared standard space in the top of the program :roll:
I hope you know I just stole that from your post.

I have no idea what any of that means. :D
 

Staff online

Forum statistics

Threads
558,102
Posts
5,452,533
Members
6,336
Latest member
FKUCZK15
Top