No, I'm not saying programming is stupid in general. But if you saw my test you would say: "WOW, that's stupid!". I mean I had something like this:
if(something) if(something) printf(something);else printf(something);if(something) if(something) printf(something);else printf(something);and the question was: what will it print? When I asked the guy who was supposed to help us if we don't understand something where do these "else" statements belong to he told me I should know that if I learned "if-else" statement. I almost stood up and yelled in his face "I learned how to use if-else you stupid SOB, but I learned fow to use it PROPERLY!!!" But I didn't. It was close thought.And that was just tip of an iceberg. It's completely understandabla that you have to know that i equals 2 from this expression: i=2.6-(float)(3/4)*14%7 off the top of your head just to figure out that in the next expression it's impossible to get correct result if you say i=2! note: i is decalred as intI just hope we'll do some REAL programming soon, not this junk. I mean, the most advanced program we "learned" to make is some piece-of-$h1t calculator that calculates the area of a circle! WTF?I'm completely pissed off! But I found a good joke : God is real, unless declared integer!
well the answer of what does it print is easy, it prints something [:P]
and learning all this basic junk is entirely nessissary, unless you already knew it and went to the class looking for advanced learning. If you want to apply this then buy a book on Win32 programming and youll see why the basics are required, I tried to start with win32 and failed, the basics are very important. [:)]Good joke, but in college and such you have to start from the bottom, regardless of what you know. You may think you know everything, but no one knows everything. You'll learn something if you're willing to, just be patient.
Hell, I know alot about C. I even know how to use pointers. Not that I ever used them, never needed them as I never made anything that complex in C. And why the f*** should I know what it prints when it even isn't properly used??? What's this, "learn C" or "become a compiler" course?
Yea realize that in the professional programming world you frequently don't write your own code, so if you get someone else's code that looks like this, you need to know how to read it.
Where are you learning programming?
Everyone starts from the bottom, like liquid said, in fact, it is a good chance to get high scores doing simple stuff.So that's in C then? I thought that printf was used in BASIC variants and Euphoria. I thought in C is was something weird, a four letter word or something. Cout? I don't know. Never studyed much C…
"cout" is a C++ function.
@Firebird - I know. But they're allways shown as something "advanced"
What I'm trying to say: it was written WRONG, I think that some pieces of code I got could not even be compiled!Then get a different compiler, XD
Pointers are known by some people as a primitive ability.. idk, fun stuffcout I though was avaliably in C when you included… whats it's name… stdlib or something along the lines of that. and used the namespace std.