View RSS Feed

marwex89

  1. Can I haz castz?

    by , 10-12-2009 at 03:55 PM
    Inspired by Zekes passionate blogging here, I decided to write a blog. On a topic that I think deserves a bit of thought... *drumroll* Casting in C++.

    Oh yeah. It's pretty, eh?
    Code:
    const int i = 10;
    char* c = reinterpret_cast<char*>(const_cast<int*>(&i));
    If coming from a C background you are likely to have a face expression similar to this: - longing for your good old
    Code:
    char* c = (char*)&i;
    And I can honestly understand why people despise ...
    Categories
    Programming
  2. A Pain in the A$$

    by , 08-10-2009 at 11:44 AM
    Life has been a pain in the a$$ lately. Literally. The only chair I used at my desk and computer was an old, stiff kitchen chair. Ouch. Today, though, I went to a furniture shop. I am sure I had a weird look on my face coming out of there, as I had just bought the most expensive office chair the shop had to offer...

    That probably makes me sound rich, right? Wrong. I am now broke (more or less). Anyway, I realized how much your chair means to you as a computer user. Playing video ...
    Tags: chair Add / Edit Tags
    Categories
    Personal