C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

command-line Ideas for a newbie c++ programmer?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Dave
Guest





PostPosted: Fri Dec 17, 2004 2:03 pm    Post subject: command-line Ideas for a newbie c++ programmer? Reply with quote



I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

Thanks for any help

*no flaming please, I don't like abuse, my self-esteam is low enough
as it is* Razz
Back to top
Sharad Kala
Guest





PostPosted: Fri Dec 17, 2004 2:16 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote




"Dave" <the3rdhero (AT) gmail (DOT) com> wrote in message
Quote:
I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

- If you just have a rough idea on most of the things then first get a good
C++ textbook. Recommendations - Accelared C++ (Koening &Moo), You Can Do It!
(Francis Glassborow), C++ Primer (Lippman/Lajoie). Check more book
recommendations at http://www.accu.org
- Try to solve the exercises at the end of each chapter.

HTH,
Sharad





Back to top
Rolf Magnus
Guest





PostPosted: Fri Dec 17, 2004 2:38 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote



Dave wrote:

Quote:
I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

How about making a calculator? Write a parser that can parse mathemetical
expressions like 3 * (2 + 5) / 16.7 and calculate the result. You can add a
stack to that calculator so that older results can be used in new
calculations, and you can make it support variables for storing values.
Surely, you can think of more features to add.


Back to top
Sinatra
Guest





PostPosted: Fri Dec 17, 2004 2:56 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

I'll do that, thanks very much.
Going to need to slap some cash together first Razz
In the mean time, can anyone suggest any exercises that they've done in the
past? :)

"Sharad Kala" <no_spam.sharadk_ind (AT) yahoo (DOT) com> wrote

Quote:

"Dave" <the3rdhero (AT) gmail (DOT) com> wrote in message
I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

- If you just have a rough idea on most of the things then first get a
good
C++ textbook. Recommendations - Accelared C++ (Koening &Moo), You Can Do
It!
(Francis Glassborow), C++ Primer (Lippman/Lajoie). Check more book
recommendations at http://www.accu.org
- Try to solve the exercises at the end of each chapter.

HTH,
Sharad







Back to top
Gernot Frisch
Guest





PostPosted: Fri Dec 17, 2004 3:08 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote


"Dave" <the3rdhero (AT) gmail (DOT) com> schrieb im Newsbeitrag
news:3fe3e5ff.0412170603.2511007a (AT) posting (DOT) google.com...
Quote:
I recently started to learn C++, i have a rough idea on most things
in
the language and my knowlage is slowly expanding. The problem is,
I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i
can
code that with my eyes closed i've done it that many times! I'm
only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

Thanks for any help

*no flaming please, I don't like abuse, my self-esteam is low enough
as it is* Razz

For beginners a common task would be to write a simple data base for
your CD-collection. With a search function and so on...
Or write a programm that inputs some data and creates a html file from
it.
Or even better: make a directory, where you have a lot of .html files.
Each file has some "###NAME###", and "###TITLE###" texts. Now, have
the user provide such a file (argv) and parse it, make a list of all
the ###xx### arrays and ask for substitutions, then substitute them,
write the file to disk and open it in a webbrowser (command "system").
This way you can design template greeting cards, invitations etc..

-Gernot



Back to top
Pedro Graca
Guest





PostPosted: Fri Dec 17, 2004 3:17 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

Dave wrote:
Quote:
I recently started to learn C++ ...
I cannot think of anything to code for practice ...
I'm only able to do command-line sort of apps because I'm still learning!
Any Suggestions?


Try this:

You have two files with names (one per line).
Identify which names are in only one file and which are in both files.

eg file1
Pedro Graca
Dave
Anonymous

eg file2
Anonymous
NoName

eg result:
names only in file1:
Pedro Graca
Dave

names only in file2:
NoName

names in both files:
Anonymous


Happy Coding :-)

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!

Back to top
Sinatra
Guest





PostPosted: Fri Dec 17, 2004 4:40 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

thanks for the suggestions guys, really appreciate it.
i'm still having a go at that calculator Razz
getting a syntax error during compilation though.
just trying to figure out where i went wrong Very Happy
"Pedro Graca" <hexkid (AT) dodgeit (DOT) com> wrote

Quote:
Dave wrote:
I recently started to learn C++ ...
I cannot think of anything to code for practice ...
I'm only able to do command-line sort of apps because I'm still learning!
Any Suggestions?


Try this:

You have two files with names (one per line).
Identify which names are in only one file and which are in both files.

eg file1
Pedro Graca
Dave
Anonymous

eg file2
Anonymous
NoName

eg result:
names only in file1:
Pedro Graca
Dave

names only in file2:
NoName

names in both files:
Anonymous


Happy Coding :-)

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!



Back to top
Andrey Butov
Guest





PostPosted: Fri Dec 17, 2004 6:24 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

topcoder.com has a wide plethora of practice examples for you to use.

It will even test your code for correctness and give you the answers of
hundreds of other folks

Back to top
rossum
Guest





PostPosted: Fri Dec 17, 2004 11:14 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

On 17 Dec 2004 06:03:42 -0800, [email]the3rdhero (AT) gmail (DOT) com[/email] (Dave) wrote:

Quote:
I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

Thanks for any help

*no flaming please, I don't like abuse, my self-esteam is low enough
as it is* Razz

Try some of the problems at http://acm.uva.es/problemset/

rossum



--

The ultimate truth is that there is no Ultimate Truth

Back to top
Mike Wahler
Guest





PostPosted: Sat Dec 18, 2004 12:23 am    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

"Sinatra" <the3rdhero (AT) gmail (DOT) com> wrote

Quote:
I'll do that, thanks very much.
Going to need to slap some cash together first Razz

While you're saving your nickels, check out the free
online book by Bruce Eckel, "Thinking in C++" at
www.mindview.net

This is the only online C++ text that's consistently
'approved' by the 'gurus.'


Quote:
In the mean time, can anyone suggest any exercises that they've done in
the
past? Smile

Off the top of my head (I've done some but not all of these):

Text adventure games.

Card games (e.g. poker, rummy)

Address book.

Traffic signal simulations (could be e.g.
'traditional' stoplights, or perhaps a railroad
switching system).

Conversions, e.g. between metric and U.S. measurements

Mainly try to find an application that you like,
to keep your interest when you run into difficulty.

Friends and family members are often a good source
of ideas.

-Mike



Back to top
Mike Wahler
Guest





PostPosted: Sat Dec 18, 2004 12:25 am    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

"Sinatra" <the3rdhero (AT) gmail (DOT) com> wrote

Quote:
thanks for the suggestions guys, really appreciate it.
i'm still having a go at that calculator Razz
getting a syntax error during compilation though.

Show us the code and the error messages, and we'll try to
help.

Also, a good book (or two, or more) will help greatly.
You didn't say if you have any, or if you do, which
one(s).

BTW please don't top-post (if you don't know what that
means, look it up)

-Mike



Back to top
Sinatra
Guest





PostPosted: Sun Dec 19, 2004 2:01 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

cheers Mike Smile
"Mike Wahler" <mkwahler (AT) mkwahler (DOT) net> wrote

Quote:
"Sinatra" <the3rdhero (AT) gmail (DOT) com> wrote in message
news:fsCwd.1151$Qo4.664 (AT) fe1 (DOT) news.blueyonder.co.uk...
I'll do that, thanks very much.
Going to need to slap some cash together first :P

While you're saving your nickels, check out the free
online book by Bruce Eckel, "Thinking in C++" at
www.mindview.net

This is the only online C++ text that's consistently
'approved' by the 'gurus.'


In the mean time, can anyone suggest any exercises that they've done in
the
past? :)

Off the top of my head (I've done some but not all of these):

Text adventure games.

Card games (e.g. poker, rummy)

Address book.

Traffic signal simulations (could be e.g.
'traditional' stoplights, or perhaps a railroad
switching system).

Conversions, e.g. between metric and U.S. measurements

Mainly try to find an application that you like,
to keep your interest when you run into difficulty.

Friends and family members are often a good source
of ideas.

-Mike





Back to top
Ioannis Vranos
Guest





PostPosted: Sun Dec 19, 2004 3:43 pm    Post subject: Re: command-line Ideas for a newbie c++ programmer? Reply with quote

Dave wrote:

Quote:
I recently started to learn C++, i have a rough idea on most things in
the language and my knowlage is slowly expanding. The problem is, I'm
getting "artist-block", I cannot think of anything to code for
practice, i've been doing couts and cins such as, enter a
number...blah blah...but that isn't really a challenge anymore, i can
code that with my eyes closed i've done it that many times! I'm only
able to do command-line sort of apps because I'm still learning! Razz
Any Suggestions?

Thanks for any help

*no flaming please, I don't like abuse, my self-esteam is low enough
as it is* Razz


I have not a particular exercise idea in mind (you can do a phone book
may be?), however my general advise is finish some beginner to
intermediate level book (by the way which one are you reading?) and then
you can learn some platform-specific programming (Windows/.NET, Linux,
etc) and then learn more C++, etc.


This is the path that I follow.




--
Ioannis Vranos

http://www23.brinkster.com/noicys

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.