Skydiver's Profile User Rating: ****-

Reputation: 3702 Guru
Active Posts:
11,706 (11.76 per day)
05-May 12
Profile Views:
Last Active:
User is online 17 minutes ago
Viewing Topic: What Is the Bubblesort?

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:
C/C++, C#

Latest Visitors

Icon   Skydiver has not set their status

Posts I've Made

  1. In Topic: Creating/Using a GUI with C++ (Visual Studio 2013)

    Posted 25 Jan 2015

    View PostWilliC++, on 24 January 2015 - 07:36 PM, said:

    Furthermore, multi-inheritance is a feature I am badly missing in languages like Java. Of course, multi-inheritance makes things more complicated and you have to be careful to avoid mistakes, but such features give a programmer the freedom to do what he wants without searching for workarounds.

    In my experience, it is only about 20% of the time that people actually want multiple inheritance that includes the behavior. The other 80% of the time, what they actually wanted was multiple inheritance of the interface not the behavior.

    Of the 20%, only less than a third were actually after the full implications of having multiple inheritance: interface and behavior. The other two-thirds were just after the saving in typing where they wanted to inherit the behavior and didn't really care whether the interface was inherited or not.

    You are probably aware of the modern OOP maxim: "Prefer composition over inheritance." I think that the industry has come to this conclusion after many years of experience. To me, it's a remind to think hard whether I really want my class UraniumPU36IlludiumRadioactiveSpaceModulator to derive from both class HandGun and class PlanetBuster or not.

    View PostWilliC++, on 24 January 2015 - 07:36 PM, said:

    In C++ I was able to write it the very way I wanted it in the first place and it was even intuitive for me.

    It's always good when a language is a good fit for the way you think. Kudos to you!

    View PostWilliC++, on 25 January 2015 - 07:47 AM, said:

    Yes, you are right, the code is hard to understand. Microsoft decided to be lazy by using short names for its variables and methods instead of using more descriptive but longer names.

    Those variable names are actually quite descriptive if you learn to read Hungarian notation and get accustomed to the Windows naming convention. I'm quite sure you went through the same thing when you were learning Java and got used to the Java naming conventions.
  2. In Topic: Creating/Using a GUI with C++ (Visual Studio 2013)

    Posted 25 Jan 2015

    View PostWilliC++, on 24 January 2015 - 07:36 PM, said:

    I used the pointers in a way that you cannot in C#, or at least I believe you cannot.

    If you mark your code as unsafe and pin block of memory down, you can use pointers in C#.
  3. In Topic: Need Help with this C++ program

    Posted 25 Jan 2015

    Stop and think about it. Older compilers needed you to declare a class completely before it would put it into its data structures for global use. (It is smart enough to recognize the class for member use.) Your definition for the class Person starts at line 13 and ends at line 51. You are trying to refer to that same class on lines 48 and 49.

    (Your code fails to compile at a much later location when using a modern compiler after I made adjustments for the non-standard C++ iostream.h used by Turbo C.)
  4. In Topic: Need Help with this C++ program

    Posted 25 Jan 2015

    I suspect that the problem is quite simple, actually. I think that's because you are using an old compiler that doesn't know how to handle code as simple as:

    #include <iostream>
    class Foo
        int m_bar;
        friend void DoSomethingToFoosPrivates(Foo foo);
        : m_bar(42)
    void DoSomethingToFoosPrivates(Foo foo)
        std::cout << foo.m_bar << std::endl;
    int main()
        Foo pho;
        return 0;

    I suggest moving up to a more current compiler and/or IDE as recommended above.

    Barring that. I suggest looking at learning how to do forward declarations.
  5. In Topic: C++, Visual Studio 2013, How to create a second instance of a window

    Posted 25 Jan 2015

    View PostWilliC++, on 25 January 2015 - 11:37 AM, said:

    Now I want to learn how to create a GUI in C++. For this, I have chosen Visual Studio 2013's Win32 project.

    Be aware that the code in the default VS2013 Win32 project is actually C, rather than C++. If you look closely at the code, nothing there is C++ specific.

    If you really want to use C++, take a look at my tutorial Better Windows Code Organization Using C++ classes as an idea of one way of approaching the problem.

    Alternative C++ approaches are to use ATL (highly recommended), MFC (only do this if you have a gun stuck to your head), or STL (if you think that ATL is almost as high overhead as MFC).

    Also as mentioned by jimblumberg, there are also other C++ GUI frameworks. Look at Qt and FLTK for example.

My Information

Member Title:
Code herder
Age Unknown
Birthday Unknown
programming, shooting, skydiving, scuba, photography, game dev, cryptography, design patterns, agile methodologies, scifi, fantasy,
Years Programming:
Programming Languages:
C, C++. C#, PHP, JavaScript, Pascal, SQL, BASIC, Forth, x86, 65000, 65xx,

Contact Information



  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    tarmizi_adam2005 Icon

    08 Mar 2014 - 09:03
    Congrats on the 3k rep ! also, before your rep changes nice palindrome rep, 3003.
  2. Photo

    tarmizi_adam2005 Icon

    27 Nov 2013 - 18:56
    Just wanted to stop by and say thanks on the advices you gave in my post (read wav files C/C++) the other day.
    Thanks again Skydiver
  3. Photo

    sanwall Icon

    27 Nov 2013 - 00:54
    kindly answer my post about visual studio!
  4. Photo

    raspinudo Icon

    03 Jul 2013 - 05:51
    Nice Star Trek t.n.g. Reference
  5. Photo

    todddowers Icon

    26 Jun 2013 - 23:07
    hello i was wondering do you know anything about text based games.
  6. Photo

    CY5 Icon

    10 Jun 2013 - 07:07
    Thanks SkyDiver you're always there to help on C# forum
  7. Photo

    Jovel Mark Icon

    05 Mar 2013 - 23:51
    salamat sa pagtulong .. keep it up the work..
    kung wala kamo wala kami mahimo sang amon nga project ba,, madamo gd nga salamat sa pagtabang..
  8. Photo

    tlhIn`toq Icon

    30 Dec 2012 - 16:20
    Congrats on the Mentor badge. I think that is new record. Glad to have you on board.
  9. Photo

    lp94 Icon

    07 Oct 2012 - 06:09
    thank you soooooo much <3
  10. Photo

    kai_itz me Icon

    25 Sep 2012 - 04:40
    i agreed with MrShoes.
    More knowledgeable than many; more patient than most.
    very well said :)
  11. Photo

    tlhIn`toq Icon

    01 Sep 2012 - 15:22
    I just saw the Expert badge... Well done!
  12. Photo

    nazzie Icon

    22 Aug 2012 - 00:34
    Thanks for your Help! Keep up the good work.. thanks so much! ^_^
  13. Photo

    vikuseth Icon

    17 Aug 2012 - 23:12
    thanks for helping me in Dll issue .
    you are the best. ..
    good luck...
  14. Photo

    MrShoes Icon

    08 Aug 2012 - 00:49
    More knowledgeable than many; more patient than most.
  15. Photo

    BarackObama Icon

    31 Jul 2012 - 00:59
    This guy is the best! Love him
  • (2 Pages)
  • +
  • 1
  • 2