Ideas for first program?

J

Jason Taylor

I am wanting to learn C++, and am curious what my first program should
be. I learned PHP by reading the docs as I wrote a news posting
script. Any ideas on how I would go about starting my trek in C++?
 
V

Victor Bazarov

Jason said:
I am wanting to learn C++, and am curious what my first program should
be. I learned PHP by reading the docs as I wrote a news posting
script. Any ideas on how I would go about starting my trek in C++?

Write the same news posting script in C++. It may require you to
write your own functions for something that PHP has built-in (like
processing of URLs or HTTP headers or some such), but it would be
a very good exercise. You can, of course, use some kind of 3rd
party library (or you can make it the next cycle of learning C++)
but I would advise against it at first since it might just clutter
your process with unnecessary problems.

Try not to bite off too much at once. Perhaps CGI is not the best
area to start in. C++ is good in large systems, but when you think
small, you can create utilities in C++. Something that simply
reads the input stream and writes something else into the output
stream. Word/byte/line counting program (you know, 'wc'), or even
something less sophisticated (although I am not sure how much lower
can one go beyond 'wc').

V
 
J

Just me

I am wanting to learn C++, and am curious what my first program should
be. I learned PHP by reading the docs as I wrote a news posting script.
Any ideas on how I would go about starting my trek in C++?


Oh, make it easy on yourself. Write me an AI program to track down and
assassinate all spammers. I'm thinking lightning bolts through their
video monitors would do just fine.
 
J

Jude Naveen Pinto

Oh, make it easy on yourself. Write me an AI program to track down and
assassinate all spammers. I'm thinking lightning bolts through their
video monitors would do just fine.

HI
to learn c++ and OOPS concepts, Please try implementing design
patterns, may be you can start of with bridge design pattern!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top