Xupicor's Profile User Rating: *****

Reputation: 247 Stalwart
Group:
Expert
Active Posts:
578 (0.8 per day)
Joined:
31-May 11
Profile Views:
4,152
Last Active:
User is offline Feb 07 2013 05:32 PM
Currently:
Offline

Previous Fields

Country:
PL
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Xupicor is really, really tired these last few days...

Posts I've Made

  1. In Topic: DIC 2012 Community Awards- Winners

    Posted 20 Jan 2013

    I'm third... *Dazzled*
    I mean, thank all of you who have taken your precious time and voted for me. I honestly did not deserve it, but I'm quite touched and, well, startled.

    Congratulations for all the winners, you made it. :)
  2. In Topic: Initializing class member variables?

    Posted 11 Dec 2012

    Okay, my bad then.
  3. In Topic: changing elements in array

    Posted 9 Dec 2012

    When in doubt - read the docs!

    string::find doesn't return bool but size_t signifying a position at which sequence was found. If it's not found, string::npos is returned.
  4. In Topic: When does a destructor run in C++

    Posted 9 Dec 2012

    @OP, and my example

    That goes without saying that if you want to know what happens you really should get some good source (recommended C++ books, ISO/IEC C++ standard if your stomach is up to it) and read about what is guaranteed and what is not.

    TIAS (Try It And See) is great, but remember that with C and C++ just because code compiles and "works" doesn't mean it's valid. Also, just because your compiler does some things some way doesn't always mean that some other won't do it differently. There are things that are guaranteed by the language standard, but... Undefined behaviours are not as hard to invoke as you'd think, so beware. ;)

    TL;DR: If you find yourself guessing at something, then stop and check source material.
  5. In Topic: Initializing class member variables?

    Posted 9 Dec 2012

    @Midi_ - Note that you didn't initialize your variable here:
    Circle::Circle(){
        pi = 3.14;
    }
    

    You assigned a value to it, that's different. If you want to initialize it, you need to use initialization list:
    Circle::Circle() : pi(3.14) {
      // ...
    }
    

    Even if you don't see it at first, there is a difference. See below:

    // obj is an object of class B
    // value is an object of class C
    A::A() {
      obj = value; 
    }
    

    Here, first, default constructor B::B() is called, after that obj is fully initialized, then B::operator=(const C& value) is called.

    A::A() : obj(value) { }
    

    And here parametrized constructor B::B(const C& value) is called and initializes obj.

    See the difference? The first code can even prevent compilation if class B has no fitting operator=.

My Information

Member Title:
Nasal Demon
Age:
27 years old
Birthday:
March 20, 1986
Gender:
Location:
Paris, France
Interests:
Programming, IT, bits of cosmology and philosophy, history (focusing on WWII lately), s-f (Asimov, Lem, Dick...) and fantasy (Tolkien, Sapkowski, Le Guin, Modesitt...) books, good movies (Tarantino, Nolan, Polański, Scorsese, Kurosawa, Kubrick... and more), sometimes an anime movie or series (Ghost in the Shell, Cowboy Bebop, LoGH, House of Five Leaves, Mononoke, etc). I enjoy playing RTS and RPG games (that includes browser text-based fable-driven ones), and sometimes hunting my pals as an alien in AvP2, or playing as a platoon commander (or helicopter pilot) in Battlefield 2.
Full Name:
Tomasz Wota
Years Programming:
5
Programming Languages:
Pretty good: C, C++, PHP
Not too shabby: Java, JavaScript, Python
Bit rusty: Perl
Can't remember a thing: Atari 128 & Commodore 64 BASIC, Pascal
Learning (or planning to): C#, LUA, Haskell, Scala
Thinking about glancing trough: Mathematica, D, Objective-C, Go, R, Clojure, Curl (not libcurl :P)

Contact Information

E-mail:
Private

Comments

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  1. Photo

    aresh Icon

    12 Feb 2013 - 12:11
    http://www.dreamincode.net/forums/user/603453-raghavnaganathan/
    Ain't my observation correct? ;)
  2. Photo

    raghav.naganathan Icon

    08 Feb 2013 - 03:26
    Pardon my double post :)
  3. Photo

    raghav.naganathan Icon

    08 Feb 2013 - 03:23
    Ah...I understood now :)
  4. Photo

    raghav.naganathan Icon

    08 Feb 2013 - 03:23
    Ah...I understood it now :)
  5. Photo

    aresh Icon

    01 Feb 2013 - 22:06
    Also,
    http://www.dreamincode.net/forums/user/603453-raghavnaganathan/
    Read the last 2 comments!
  6. Photo

    aresh Icon

    01 Feb 2013 - 22:06
    Dude, don;t you do ANY interesting thing?
  7. Photo

    aresh Icon

    01 Feb 2013 - 05:39
    So, do you read comics? Like Archie or something..?
  8. Photo

    aresh Icon

    26 Jan 2013 - 14:56
    Well, DIC decided to cut your comment, but still left enough for me to understand what you said :D
    And Asimov is also on my list, but I just can't find the time to read his works with studies, gaming and programming hogging up all of my time...
  9. Photo

    aresh Icon

    26 Jan 2013 - 14:20
    Oh, and just because you did this, I am also double-posting on your profile.
  10. Photo

    aresh Icon

    26 Jan 2013 - 14:20
    Well, I disagree. But either way, everyone is entitled to their own opinions.
    And I understood your meaning after googling a little bit :D
  11. Photo

    aresh Icon

    20 Jan 2013 - 18:16
    Have you ever read the works of "Jeffrey Archer"?
  12. Photo

    aresh Icon

    20 Jan 2013 - 10:01
    Cool, thanks :)
  13. Photo

    aresh Icon

    20 Jan 2013 - 09:46
    Well, the last book you suggested to me was Song of Fire and Ice, and I really loved it. So, I think I'll take your suggestion this time :)
  14. Photo

    raghav.naganathan Icon

    13 Jan 2013 - 22:52
    I can understand that Xupi...:) never mind...I said so because you were missing in action and I thought maybe you have gone on vacation :)
  15. Photo

    raghav.naganathan Icon

    28 Dec 2012 - 04:35
    Dude...what's up...I'm not seeing your expert suggestions in the forums these days...where are you?? :)
  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »