Homework =)

This is a discussion on Homework =) within the C++ Programming forums, part of the General Programming Boards category; I've been learning (teaching myself) some c++ and I haven't really been writing my own programs or experimenting too much ...

  1. #1
    C++ and openGL Raeliean's Avatar
    Join Date
    Jul 2005
    Posts
    28

    Homework =)

    I've been learning (teaching myself) some c++ and I haven't really been writing my own programs or experimenting too much with how stuff works, I really have no clue what to do is why.. Could someone give me some suggestions on a program to compile (something noobie and easy) so I can try working stuff out.. kinda like homework.

    Thanks in advance.
    Be inspired.

  2. #2
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Hello world?
    Simple Calculator?
    Translator maybe?
    File I/O?

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Try to answer questions here. I can guarantee that you will learn a great deal simply by trying to teach things to other people.
    My best code is written with the delete key.

  4. #4
    dra
    dra is offline
    Weak. dra's Avatar
    Join Date
    Apr 2005
    Posts
    166
    Quote Originally Posted by mrafcho001
    Hello world?
    Simple Calculator?
    Translator maybe?
    File I/O?

    Haha, I find it weird that those are the exact same things (in order too) that I did the first few days I started learning C++.

  5. #5
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by dra
    Haha, I find it weird that those are the exact same things (in order too) that I did the first few days I started learning C++.
    You didnt do the temperature program third?

    I would use the IDE: Dev-Cpp to compile your programs. Theres information on the main site on how to get started with compilers. Personally if you are serious I would just buy a C++ book (after thoroughly looking for the right on on amazon.com) that will take you through the basics, because they usually include ideas for homework programs in them anyway.

    I'd also stick around and try and help people on the forums too. I've read the basics and such many times, but the only way I'm ever going to affirm them is by practice on while helping on these forums I believe. For example.. 5 posts ago I recommended allocating memory and forgot to deallocate it, because it was written quickly, but still.. never though of it until it was pointed out.. the only way I would have corrected that in my own program is if I looked it over 5 times.
    Last edited by Dae; 07-16-2005 at 08:49 PM.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Quote Originally Posted by Dae
    You didnt do the temperature program third?

    I would use the IDE: Dev-Cpp to compile your programs. Theres information on the main site on how to get started with compilers. Personally if you are serious I would just buy a C++ book (after thoroughly looking for the right on on amazon.com) that will take you through the basics.

    This is by far a great suggestion.. don't do like me.. i learn all of my C++ from Websites and Tutorials.. and trust me, that is the hard way!

    If i could go back in time i would get a few books.. but by the time i realized that a book would be helpful i was deep into C++, or so i though and as i kept learn i kept saying to myself "No need for book now" and well here i am with my first book on MFC...

  7. #7
    Pokemon Master digdug4life's Avatar
    Join Date
    Jan 2005
    Location
    Mystic Island, NJ
    Posts
    91
    lol i did the temo thing third also, (whats the file I/O) sorry for not knowing

  8. #8
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Quote Originally Posted by digdug4life
    lol i did the temo thing third also, (whats the file I/O) sorry for not knowing
    File Input/Output
    Reading form File/Writing to a File

  9. #9
    Registered User
    Join Date
    Jul 2005
    Posts
    20
    Well, what I did was going through tutorials on the net. That means, I actually wrote and compiled the code in them, instead of just reading them. Be careful in your selection of tutorials, as many of them will teach you bad practice (in fact, I started out void maining myself).

    The cProgramming tutorials should be a good start (http://www.cprogramming.com/tutorial.html).

    It might also be a good idea to check out the 'Getting Started' section as well (http://www.cprogramming.com/begin.html).

    I also use the Dev-c++ IDE from Bloodshed (www.bloodshed.net/devcpp.html), like Dae suggested, and it works well. I don't really use the text editor, though, because I have fallen in love with Crimson Editor (www.crimsoneditor.com).

    Hope that helps. Good luck!

    [edit]
    I forgot to mention this online book, that Dae recomented to me:http://newdata.box.sk/bx/c/
    [/edit]
    Last edited by muggizuggi; 07-16-2005 at 09:13 PM.

  10. #10
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by muggizuggi
    [edit]
    I forgot to mention this online book, that Dae recomented to me:http://newdata.box.sk/bx/c/
    [/edit]
    I've stopped recommending that, and would remove the link from my posts if I could. For two reasons, 1) I did some research after someone mentioned it, and that website is hosting that book illegally as an ebook, and 2) It was written in 1998 so parts of it are outdated, and it has gotten the worst reviews on amazon.com, which I agree with. The only reason I was able to start out with that book was because I had pre knowledge from many tutorials. If we are talking about seriously then .. get a good book. C++ Primer Plus (5th Edition), by Stephen Prata, then follow it with The C++ Programming Language (Special 3rd Edition) by Bjarne Stroustrup (the C++ creator). But if you cant buy one then http://steveheller.com/cppad/cppad.htm would do.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 04:39 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 05:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 04:16 PM
  4. Homework
    By kermi3 in forum Windows Programming
    Replies: 5
    Last Post: 09-15-2001, 12:48 PM
  5. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21