Internet Explorer may not be fully supported. The CSP Team recommends you to download FireFox or Google Chrome. Thank you!

+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 11 to 14 of 14

Thread: C++ doubts

  1. #11
    Senior Member n3krO's Avatar
    Join Date
    Jul 2010
    Location
    Málaga, Spain
    Posts
    3,905
    Quote Originally Posted by k1no View Post
    using classes and objects helps you re-use code.
    i might agree with intr0x.... When doing big programs it may be usefull to sometimes re-use the code but, as i'm learning, i think it would be better to force me to code everything in every new program i do, that way i will learn faster... when i full understand what i'm doing is when i may use class (i sill did not understand how they work).

    Well, i'm now reading this tutorial to learn to do windows and not Dos-Console programs: http://www.winprog.org/tutorial

  2. #12
    Senior Member Yatta's Avatar
    Join Date
    Aug 2008
    Location
    Ponyfornia, United States of Equestria
    Posts
    664
    Compiling: I'd suggest Dev-C++
    I'd suggest Dev-C++
    suggest Dev-C++
    Dev-C++
    That's just mean, bro!

    wxDev-C++ is fine, though.

    As for classes and objects, I'd say learn how to use functions first. But once you've grasped functions and have became comfortable with them, I'd say you should try to learn classes and objects soon after. Even if it's over the top to use classes and objects in smaller programs, it will still help teach you good programming habits.
    Last edited by Yatta; 01-06-2012 at 08:01 AM.

  3. #13
    Contributor/Tester
    Join Date
    Apr 2009
    Location
    Gdansk, Poland
    Posts
    1,391
    My answer won't be based on c++ but since i believe you'll run the game only on windows you could just run a bach cmd 'cls' to clear the screen and 'mode x,y' to change console window size.
    Niedoświadczeni nazywali kulturą to, co było częścią ich zniewolenia
    ~Anonymous


    Naród, który nie szanuje swojej przeszłości, nie zasługuje na szacunek teraźniejszości i nie ma prawa do przyszłości.
    ~Józef Piłsudski

  4. #14
    Member
    Join Date
    Feb 2010
    Location
    NY
    Posts
    420
    It took me until like a week left of the semester to understand the difference between a class and an object. OOP is not easy(or I just suck at it)
    I put on my robe and wizard hat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts