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] dreamwaffles.livejournal.com 2009-01-10 05:48 am (UTC)(link)
This made me go :( for you. I really hope you can fix it.

...is it weird that, um, I only have a clue what the hell "compiling code" even means because of XKCD?

[identity profile] nianeyna.livejournal.com 2009-01-10 09:47 pm (UTC)(link)
Oh no, I didn't mean to make you feel bad! I was hoping to amuse, actually. Because while this is pretty frustrating, my professor seems to be understanding about it so it's not really that big a deal. :)

And it's okay, I didn't know what compiling code was until I took computer science junior year.

[identity profile] brainmissing.livejournal.com 2009-01-10 09:26 am (UTC)(link)
Pobrecita! *huggles*

And you, dreamwaffles. I am in a similar boat. I had an IDEA of what compiling code meant before I read XKCD, but it was kind of a vague notion more than actual knowledge... O.o

[identity profile] nianeyna.livejournal.com 2009-01-10 09:50 pm (UTC)(link)
It's okay. :) I'm not going to get in trouble about it or anything, it just kind of makes me want to bang my head against the wall. Or perhaps the keyboard, although I think banging my head against the keyboard would just give me even MORE errors... XD

[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.