Thread: No errors but still a problem.

  1. #16
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    you're my freakin programming god!
    (same joke)

    @OP: Your excitement shows that you may very well succeed in programming if you started from square one and continued through. A few months back, I did my first console/ASCII "game" programming and it was very enjoyable. (Also very difficult, but rewarding for sure.)

  2. #17
    Registered User
    Join Date
    Jul 2011
    Posts
    10
    Your excitement shows that you may very well succeed in programming if you started from square one and continued through

    that makes me feel all warm and fuzzy inside... i am going back and doing the "hello world" stuff and working my way through... i'm still going to continue with the tutorials and make my game but i will hopefully understand more as i go and will eventually get to the point and improve on the game (beyond what the tutorials suggest)

  3. #18
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Have you looked at XNA? A free game development framework for C# / VB.NET from MS.

    Might be a bit easier to start with than C++ (especially if you are doing WIN32 in C++). There are plenty of tutes, code and samples.

    If you want to continue on and code professionally then C++ is not a great choice, compared with C#. [where I live there SEEK has 3 C++ jobs and over 100 .NET ones, C++ appears to dying out unfortunately.]

    Microsoft XNA - Wikipedia, the free encyclopedia
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #19
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by novacain View Post
    If you want to continue on and code professionally then C++ is not a great choice, compared with C#. [where I live there SEEK has 3 C++ jobs and over 100 .NET ones, C++ appears to dying out unfortunately.]
    I disagree. C++ is a great place to start. I found it really easy to pick up C#, and I attribute this to the fact that I was already experienced in C++. even as a .Net programmer, it's still often very helpful to know C++. I have found numerous occasions where I have been working on a .Net project, only to come across an issue that was better dealt with in native code. Knowing C++ was an invaluable asset in these situations. My experience (and that of those around me) has shown me that starting with C++ and later learning C# is a preferred course (your results may vary) because if you start with C#, and move to C++, you'll be wondering why you can't do certain things, or why you have to manually delete any objects created with "new". Learning C# after C++, for me, provided a lot of moments where I literally, out loud, said "wow, I can do that? that's really cool".

    My vote is for continuing your C++ adventure until you're comfortable with it, and then learn C# if you want to expand your horizons.

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Elkvis View Post
    ...or why you have to manually delete any objects created with "new"...
    TBH, you never really do that in modern C++. You wrap them in smart pointers and be done with it.
    But I might see users having trouble with understanding that just allocating them and using them won't deallocate it when you're done with it.

    Learning C# after C++, for me, provided a lot of moments where I literally, out loud, said "wow, I can do that? that's really cool".
    I find that hard to believe. The only thing C++ "lacks" is reflection.
    Otherwise I have found, in my experience, that C++'s arsenal of tools is far superior to that of other type strict languages.
    For example, deterministic destruction.

    My vote is for continuing your C++ adventure until you're comfortable with it, and then learn C# if you want to expand your horizons.
    I'll just say that I recommend you learn C++ and then broaden your language horizon by learning other languages because being an amateur in many languages is better than being an expert in one language in today's world.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by Elysia View Post
    The only thing C++ "lacks" is reflection.
    and properties
    and partial classes
    and extension methods
    and consistent event handling

    it's true that most of these things can be emulated or worked around in C++, but their inclusion in the C# language makes writing code go much more quickly. C# was created to help increase the speed at which applications can be developed, and its features do that quite effectively. if C# had deterministic object destruction and better native code support, C++ would lose most of its advantages.

  7. #22
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    And what is consistent event handling?
    I doubt C++ would lose its edge. I'm pretty sure C# disallows you to do a lot of things (like Java)?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #23
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    It is not about C++ doing or not doing things.

    Nor is it about the 'best' language.

    It is about what teh OP wants to acheive from his coding.

    If he wants to make games that involve a GUI (rather than text based) then the XNA framework will save him months to years of learning.

    If he then decides to pursue a proffession in game development or other programming then C# is a MUCH better choice than C++.

    Realtime graphical UIs, timings and resource handling in WIN32 C++ or MFC are all VERY difficult to learn, design and maintain, even for an experienced coder.

    With XNA you can have a Windows 2D game skeleton in a few minutes and actual, encouraging results in a few hours (as XNA handles all those things in the background).

    Quote Originally Posted by Elysia View Post
    And what is consistent event handling?
    In WIN32 C/C++ messages have incosistent params and returns.

    C# events all have the same params and allows you to add subscribers or consumers to events / publishers.

    Using delegates allows thread safe interaction with UI elements (which is unavailable in WIN32 or MFC).
    Last edited by novacain; 07-21-2011 at 09:35 PM.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  9. #24
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You cannot blame C++ for the shortcomings of Win32. Qt uses a slot/signal mechanism, which sounds similar to what you are saying.

    Also, I'm sure C# is easy to learn, but I'll bet there is equivalently easy Game [Engine]/[Library] out there that does the same thing.
    I'm pretty sure that if you go professional game programming, you will need C++ more than C#.
    While the world loves C#, I wouldn't let me world revolve around it just yet.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #25
    Registered User
    Join Date
    Jul 2011
    Posts
    10
    Guys, please don't argue over which is better, or which lacks what. It's not cool... I just wanted to learn to do something I didn't know how to do. The particular tutorial i found was written in C++ so that's where I'm starting Idk what C# is yet, but I'm sure I'll learn it next. SO, it time... this debate won't mean anything. It will be some relic from an almost forgotten past. Seems to me, from what you guys are saying, that C++ is older and I've always been a big fan of knowing where u came from so that's a good as place as any to start. I would also say that you three (Elysia, Elkvis, and novacain) seem to know a great deal about both C++ and C# so I'll more than likely be calling on you (and everyone else) to help me along in my trek into this world.
    Last edited by d20junkie; 07-22-2011 at 12:50 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem with errors
    By mark103 in forum C++ Programming
    Replies: 3
    Last Post: 04-05-2011, 11:00 AM
  2. Problem using map<> - Compile Errors
    By intruder in forum C++ Programming
    Replies: 15
    Last Post: 04-19-2006, 11:56 AM
  3. Replies: 12
    Last Post: 06-08-2005, 11:23 AM
  4. build errors and cin problem
    By steve043 in forum C++ Programming
    Replies: 5
    Last Post: 04-04-2004, 12:56 PM
  5. problem solving compiler errors
    By Jan79 in forum C++ Programming
    Replies: 1
    Last Post: 07-02-2003, 10:59 AM