Which method is more effective?

Started by
12 comments, last by Khatharr 11 years, 3 months ago

LOL, the thread is tagged "C Language" but you're using C++ there.

That's puzzling, after reading over all the posts, I still can't find hints that this is c++ they are talking about.
Advertisement


Frame frame;
return_frame(&frame,0,0);
display(frame);


void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.


Frame frame;
return_frame(&frame,0,0);
display(frame);

I don't see the C++ there at all. I even made a C program to try it out and it compiled correctly.

C++: A Dialog | C++0x Features: Part1 (lambdas, auto, static_assert) , Part 2 (rvalue references) , Part 3 (decltype) | Write Games | Fix Your Timestep!

Never mind. For some reason I saw the & and thought reference instead of pointer-to. Possibly an advanced case of herp-derp. I've been spending so much time on schoolwork lately (eng and mat pre-reqs) that I haven't been doing any actual coding. -.-
void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

This topic is closed to new replies.

Advertisement