Thread: Need motivation

  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    12

    Need motivation

    Hello,

    I have been using this site for close to 4-5 years now and i have barely gotten out of the basics of c++ programming, i always start off with great ideas for what i want to do but start to lose motivation then stop for a few months then get back into it, i really really want to learn how to make more complex programs.

    i pretty much get stuck at class development every time, this time round i am just trying to take my time but i am at classes again and fighting to continue, i just can't find decent material on this subject.

    If anyone has any tips for me on class development and maybe keeping motivation because at this rate i feel like i will never learn how to program anything at all let alone something useful.

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    In order to get yourself able to build complex object oriented programs,i suggest you first start with simple programs...
    Try this:
    Create a family,that has one father,one mother and two children.Father,mother and children are all humans,so they inherit from a class human.Every human has a name ,a surname and an age.Every father has a job and his favorite sport.Every mother has as well a job and shop for clothes.Every children has as its attribute the school he is going to and his best friend.All attributes described(e.g. age of human) are data members of the respective class.
    After constructing your classes,just go and create the family i just described in your main.Feel free to add some attributes if needed,give preferred names ,or even create your own family(it might has more than two children).
    Again,when you find yourself in doubt about the requirements,take arbitrary decisions ,which of course make sense in terms of OOP (object-oriented programming).

    I think that is a good very first step :-)

    Hope this helps

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    12
    Quote Originally Posted by std10093 View Post
    In order to get yourself able to build complex object oriented programs,i suggest you first start with simple programs...
    Try this:
    Create a family,that has one father,one mother and two children.Father,mother and children are all humans,so they inherit from a class human.Every human has a name ,a surname and an age.Every father has a job and his favorite sport.Every mother has as well a job and shop for clothes.Every children has as its attribute the school he is going to and his best friend.All attributes described(e.g. age of human) are data members of the respective class.
    After constructing your classes,just go and create the family i just described in your main.Feel free to add some attributes if needed,give preferred names ,or even create your own family(it might has more than two children).
    Again,when you find yourself in doubt about the requirements,take arbitrary decisions ,which of course make sense in terms of OOP (object-oriented programming).

    I think that is a good very first step :-)

    Hope this helps
    I'll get on it <<endl;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Free Software - Money is not the only motivation
    By C_ntua in forum General Discussions
    Replies: 17
    Last Post: 12-05-2010, 12:15 PM
  2. The motivation of at least 2 wars in early American History
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 52
    Last Post: 03-12-2002, 08:51 PM
  3. Motivation Behind Virus Wiriting
    By RobS in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 09-07-2001, 04:26 PM