"karthik" <ka*********@gmail.comwrote in message news:11**********************@h48g2000cwc.googlegr oups.com...
hi friends,
I hav learnt c++ in the recent past,and am interested in doing some
mini project to gain some working experience in c++.so can anybody out
here help me by suggesting me with some ideas regarding the topics
which i can opt as a theme for my project.
waiting for a positive reply.
thanx in advance.
regards,
karthik.
Make some programs to do file maintainance tasks not handled by
your operating system. For example:
1. Make a file renaming program which uses regular expression
pattern matching (with backreferences) to rename files.
(You'll have to find a third-party regex library, install it,
and learn how to use it, because regex isn't in the C++ std
lib yet.)
2. Make a duplicate-file finding program which finds all
instances of duplicate files in the current directory,
and gives the user four options:
a. Delete first file
b. Delete second file
c. Ignore these duplicates; skip to next
d. Abort program
This should give you experience with making reusable code
(store oft-used code in a library file, like myutils.a),
and in std containers, algorithms, etc. Hint: use a
std::multimap of file names keyed by file size.
3. Write a program which rotates letters of the alphabet in
text by 13 letters. This is called "ROT13" and is used
as a way of visually obscuring text which some readers
of a message may not want to read. (Such as "spoilers"
for books, movies, games, etc.)
4. Write a program which counts the number of lines of source
code in a C++ project. (This will involve opening all files
of pertainant extentions such as cpp, h, hpp, rc, etc.,
counting their lines, and adding all the subtotals together.)
This will give practice with strings and file streams, and
with recursivesly navigating directory trees.
--
Cheers,
Robbie Hatley
East Tustin, CA, USA
lone wolf intj at pac bell dot net
(put "[usenet]" in subject to bypass spam filter)
http://home.pacbell.net/earnur/