Impenetrable
nothing
Oh, the irony that is C++. We didn’t have class last week, and we “have no homework,” except we have stuff to work on (at home!) that we are going to be graded on, but since we won’t actually be turning it in, it’s not homework! Ha! Isn’t that clever? Hence why I’ve been up for an hour already trying to do the reading and mess with the code for class this afternoon.
The readings are part of the online C++ tutorials at cplusplus.com, and they’re completely impenetrable. They say things like,
Here you have an example that overloads the addition operator (+). We are going to create a class to store bidimensional vectors and then we are going to add two of them: a(3,1) and b(1,2). The addition of two bidimensional vectors is an operation as simple as adding the two x coordinates to obtain the resulting x coordinate and adding the two y coordinates to obtain the resulting y. In this case the result will be (3+1,1+2) = (4,3).
I CANNOT UNDERSTAND THIS AT EIGHT IN THE MORNING. :weird:
What the fuck is a bidimensional vector? Who says things like that? In addition, the two readings are entitled “Classes (I)” and “Classes (II)” and since I am an avid Gmail user, I keep glancing at my tab bar and seeing a 1 instead of an I and thinking I’VE GOT MAIL! but then I actually don’t have any mail. It’s continually disappointing to me.
The horrible thing about this fake-non-homework is that it is worth 4 points. Four points in this class works out to be FOUR PERCENT OF MY GRADE IN THE CLASS, so if I don’t do it, I drop half a letter grade. Lovely. :sneer:
8 Comments
I’m not positive, but I believe there was a bidimensional vector in Vector, Vectoria.
That sucks. Is there no one around to help you straighten all that out Meggan?
Bucky, ah yes, Vector, Vectoria. The old classic where Julie Andrews tricked everyone into thinking she had a Y to go with her X coordinate, then pretended to pretend that her equational variables constituted the sum of the two x cordinates.
Good fun.
Geh. I tried to get through the reading in the book this morning (you know, in addition to the online reading) and fell asleep on the couch. And then had to get up to take a shower. So, um, no, there wasn’t really anybody to help, and ah, I didn’t turn in the “assignment.” :faint: This class makes me hate life.
Wouldn’t a bidimensional vector just be a vector with two coordinates, as opposed to a tridimensional one, which I would assume has X, Y and Z coordinates?
That sounds like such an obvious statement. Kick me if I’m being stupid…
Melissa, you’re probably totally correct, but I still don’t understand how in the world a vector has anything to do with C++? Geh.
Well who in the hell knows what vectors have to do with C++, but from that assignment, it just seems like you’re supposed to write a little program which adds together two vectors. So you have one part of the program that adds the X coordinates, then another part that adds the Y coordinates, then spits out the answer.
Wow, I totally forgot that I actually had a class in C++ my freshman year of college.
Well, when you put it that way… lol
Your explaination totally make sense – the reading just seemed so… well, it’s just not really what we’re doing in class, which made it more confusing. And lord how I wish that example was my assignment – that was just an example from the reading. And it never really explained what overloading the operator meant. :sneer:
I’m kind of curious how other people’s experiences in C++ have been, because mine has been so impossibly crap. I may do a post in the future about the specific reasons I’m having such a hard time…
I think by “overloading”, they meant “we’re going to throw TWO different sets of numbers into the addition operator rather than the normal 1+1” or whatever, and nothing more than that. Why they worded it that way, who knows. I hate crap like that. Problems like that would be easier to figure out if they didn’t make the English of it so difficult to understand. In my programming days (pff…yeah right), the hardest part for me was actually getting through the English to figure out what in the hell I was supposed to be doing. Sometimes I swear the people who write those examples are just dumb