Laziness is the mother of all bad habits,
but ultimately she is is a mother and we should respect her.
Examples of proper communication etiquette: things that are good to say to your colleagues during your internship:
Ready to work.
Something need doing?
Yes?
Hmmm?
What do you want?
I can do that.
Be happy to.
Work work.
Okey dokey.
I’ll try…
OK!
Why not?
Me busy. Leave me alone!
No time for play.
Me not that kind of orc!
Whaaat?
Warcraft® III: Reign of Chaos®
©2002 Blizzard Entertainment, Inc. All rights reserved. Reign of Chaos, Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
Warcraft® III: The Frozen Throne®
©2003 Blizzard Entertainment, Inc. All rights reserved. The Frozen Throne, Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
Europe/Erasmus: Mobilise Yourself – Studying and Working in the EU – Logo Competition
Total Voters: 6
On a project we were recently working on, some legacy C
code was producing a (void*) voidBuffer
accompanied by its size.
The rest of the project was in C++
and we needed to convert the (void*) voidBuffer
to a std::vector<unsigned char>
vector.
To do so, we used the following code:
//First cast the (void *) voidBuffer to an (unsigned char *) to implicitly get the element size (1 Byte each) const unsigned char *charBuffer = (unsigned char *) voidBuffer; //Then we create the vector (named vectorBuffer) by copying the contents of charBuffer to the vector std::vector<unsigned char> vectorBuffer(charBuffer, charBuffer + length);
[download id=”4084″]