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