I'm quite new to C++, I started learning it a few days ago and, even though I do have
some good studying material with me, I feel I lack a lot of practice...is there any
online tutorial with activities or anything like that you could recommend me?
There is a problem with online instruction material for C++: it's
generally FLAWED.
Very embarrassingly this was so even for MIT's first open courseware
about C++. It was full of Herb Schildt-like stuff, someone's creatively
invented facts, explanations and rationales, not to mention the
practices. They redid the courseware a year or two later with fewer
outright errors and less dis-information and bad practices, but still
that was (and probably still is) rather ungood, as I recall.
I once wrote the at that time only known /correct/ C++ tutorial,
unfinished but still. At that time the FAQ, for the
alt.comp.lang.learn-c-c++ newsgroup I think it was, mentioned that there
were no reliable, sufficiently correct C++ tutorials to find online,
which maybe was a result of the 1998 standardization radically changing
many aspects of C++, including header names! My tutorial ended up, as
the only one, in the C++ FAQ, that is, Marshall Cline's FAQ Lite.
In recent years, I think we're talking 4-5 years here, the quality has
improved, while my tutorial has first moved (as e.g. start.no free
hosting was discontinued) and then disappeared. Today I think the main
basically OK and reasonably complete online tutorial is the one at
http://www.cplusplus.com/doc/
However, the cplusplus site as a reference site is not so good. Instead
most people prefer the newer cppreference site (better quality). If
you're programming for Windows then Microsoft's MSDN Library (online) is
also a nice reference resource, as long as one keeps in mind that it's
not always very clear on what is Microsoft and what is standard, and
also that nearly all Microsoft example code is abomination-like.
I know almost nothing about the tutorial(s) at cppreference.com, but
even if they are of better quality than cplusplus.com, as is probable,
at a glance it seems to be very unfinished. Anyway, you find that at
http://en.cppreference.com/book
Finally, if you prefer to learn with this newsgroup as support then I
and others can suggest concrete exercises and discuss your solution
attempts.
As an example, in order to learn the basics of stream i/o, which you'll
need for most all other exploration,
Exercise 1 (formatted stream output)
Display a 10*10 multiplication table, nicely formatted.
Then if you post the code here, then we can review it. It should be
small enough to post directly in-message.
Cheers & hth.,
- Alf