nianeyna: (Default)
Nia ([personal profile] nianeyna) wrote2009-01-09 03:35 pm
Entry tags:

Well, eff you too, C++

This is how my latest computer science assignment has gone.

Nia: *types*
Nia: *compiles*
Compiler: You fail!
Nia: Huh.  *moves semicolons around*
Compiler: *all but one of the errors is gone*
Compiler: chutes.cpp:9: error: expected unqualified-id before "using"
Nia: Err, what?
*looks at program*
*cannot figure out what the heck the problem is*
*emails teacher*
Teacher: Err, what?  There doesn't seem to be anything wrong with it.  Try copying it into a new file.  Maybe it's got a HIDDEN CHARACTER.
Nia: ...ok... *copies*
*compiles*
Compiler: chutes.cpp:9: error: expected unqualified-id before "using"
Nia: Grr.  Sheesh.  Well, maybe this supposed "hidden character" got copied along with the rest...
Nia: *retypes the ENTIRE PROGRAM by hand*
Compiler: ...
Compiler: chutes.cpp:9: error: expected unqualified-id before "using"
Nia: OH MY GOD, CAN'T YOU SAY ANYTHING ELSE!?!

Normally I would just say the heck with it and move on, but I have to use this class in my next asignment, which means it HAS to compile.  Somehow.  I'm just going to have to figure out how before 11 am on Tuesday.  *head/DESK*

[identity profile] floydsir.livejournal.com 2009-01-15 07:41 pm (UTC)(link)
Did we name your computer James Bond? I forget. If so, is this being done on J.B.? (hee, those are my initials, too!). Dr. Jones here is willing to lay the smackdown on Mr. Bond if necessary, as the older, wiser, and more glitchy laptop.

P.S. I just realized that I got to this post way late. Did things work out?

[identity profile] nianeyna.livejournal.com 2009-01-15 07:48 pm (UTC)(link)
Well, I did some of it on 007 and some on the school computers, so I don't think that made a difference. The programming environment we use stores stuff on the internet somehow, I'm not entirely clear on how it works... XD

And yes, it did work out, after much frustration. Turns out that I needed a semicolon at the end of my .h file, but the error, for some reason, showed up in my .cpp file instead. Which would be why I couldn't figure out what the heck was going on, since I was looking in the wrong file.