|
-
October 11th, 2010, 02:01 PM
#1
suggestions for programs to get acquainted with C or C++ again
Hi,
I've been out of c and c++ programming since I was in school several years ago, and was wondering if anyone had any good ideas for programs or small projects to develop on a linux platform that would not only help me get reacquainted with syntax, OO programming, etc, but also be fun and potentially useful.
thanks!
-
October 11th, 2010, 06:22 PM
#2
Re: suggestions for programs to get acquainted with C or C++ again
How about a text-based blackjack program? I don't know how useful it would be in the end, but it might help you refresh.
-
October 12th, 2010, 01:29 AM
#3
I would personally suggest you stay out of input/output/user-interface related projects: They will teach you very little in the way of C++.
Anything more math heavy, or that manages ressources would be more interesting, IMO.
A friend showed me a problem rescently, where he searched for all the first 1 000 000 prime numbers, using an algorithm that stored all the currently found primes. It trained him in the proper use of vectors and iterators.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
-
October 12th, 2010, 08:53 AM
#4
Re: suggestions for programs to get acquainted with C or C++ again
http://projecteuler.net/ is great for those mathy kinda programming problems...
-
October 12th, 2010, 08:59 AM
#5
Re: suggestions for programs to get acquainted with C or C++ again
Look through academic papers on subjects that interest you; perhaps image segmentation or pattern recognition. Then pick one and try and implement the proposed algorithm.
-
October 12th, 2010, 04:32 PM
#6
Re: suggestions for programs to get acquainted with C or C++ again
great replies! i'm astounded at the responses on this forum.. thanks so much.
i'm checking all the responses out now, they all seem like good ideas.
also, i'd like to add, anything that can help me work with classes, polymorphism, etc would be even better since i think this area is key for the object oriented portion.
thanks guys,
Dave
-
October 12th, 2010, 11:27 PM
#7
Re: suggestions for programs to get acquainted with C or C++ again
Why not go to a library and browse through the popular scientific press, like Scientific American for example. Then pick an interesting article and try to implement something from it.
You can also solve problems from programming contests. Problems from past competitions are often available. Here's a list,
http://cplus.about.com/od/glossary/a/ten-contests.htm
Or if you want exercise style problems you can find them in C++ textbooks. I know for example Programming - Principles and Practices using C++ by Stroustrup has a lot of them after each chapter.
Last edited by nuzzle; October 12th, 2010 at 11:33 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|