Karel-Lodewijk's Profile User Rating: -----

Reputation: 454 Architect
Active Posts:
904 (0.53 per day)
17-March 11
Profile Views:
Last Active:
User is offline Jan 12 2015 03:06 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Expert In:
C/C++, Ruby
Icon   Karel-Lodewijk has not set their status

Posts I've Made

  1. In Topic: an array with random value ...

    Posted 7 Jan 2015

    Ok so you seed the random number generator with srand.Now when you call the rand() function, you will get a random integer. Now try to get those random values into your array.
  2. In Topic: help with simple recursion

    Posted 7 Jan 2015

    When x==1, your function returns 1, but when x > 1, your function doesn't return anything.
  3. In Topic: What is this?

    Posted 6 Jan 2015

    The function is not defined in that class, it is declared to be a friend of the class. If you look at the complete code you will find a function outside the class with this signature "std::ostream& operator<<(std::ostream& os, const Gcharacter& gc)".

    And basically this function exists so Gcharacter works with output streams, basically so code like this would work:

    Gcharacter gc(whatever);
    std::cout << gc << std::endl; //prints something meaningful about that Gcharacter

    Now he declares this function to be a friend of the Gcharacter class, so it can access the private/protected members of Gcharacter.
  4. In Topic: How I could assign path for the files in for loop?

    Posted 6 Jan 2015

    The open function takes a pathname, so you can just pass it something like "path/to/file/filename.extension".
  5. In Topic: Feedback on an algorithm

    Posted 5 Jan 2015

    "getNumberLength" will return length 0 if your number is 0, while in fact the number 0 still has a length of 1.

My Information

Member Title:
D.I.C Addict
Age Unknown
Birthday Unknown
Full Name:
Karel-Lodewijk Verdonck

Contact Information

Click here to e-mail me


Page 1 of 1
  1. Photo

    raspinudo Icon

    31 May 2012 - 11:41
    Just wanted to say thanks for your C++11 Memory Management Tutorial, it was super helpful; hopefully I can try to use some of the new features in my side project this summer. I did have one question, you mention the 'C way' of allocating, 'malloc'; is there anytime in C++ where it would be better to use malloc instead of new?
  2. Photo

    general07z Icon

    18 Feb 2012 - 22:21
    Thanks a million lats. Keep it up.
    Best Regards and respect
  3. Photo

    Karel-Lodewijk Icon

    05 Feb 2012 - 09:52
    No, sorry, must be someone else.
  4. Photo

    Cyclopses Icon

    31 Jan 2012 - 05:05
    Former math teacher by any chance?
  5. Photo

    ishkabible Icon

    12 Oct 2011 - 18:38
    great job in C++, keep it up!
Page 1 of 1