On 10/23/11 10:28 AM, James Kuyper wrote:
> On 10/22/2011 10:57 AM, Malcolm McLean wrote:
> ...
>> C++ could be learnt in a day by anyone who knew C. ...
>
> Perhaps it could, under the right circumstances - science fictional
> concepts like machines or drugs that implant information directly in
> your head come to mind. I doubt, however, that such speed learning is
> the norm in the real world.
>
> I was already very familiar with C when I first learned C++. I
> immediately recognized the value of many of the new features offered by
> C++. I have a long history of rapidly acquiring new computer languages,
> and the amount of time it took me to learn C++ is an example of that -
> but the amount of time was a lot longer than a single day. It took
> longer than that for me just to finish reading a detailed description of
> the new features.
>
I could see a person spending a day reading a tutorial on C++ for C
programmers and come away with enough to write some basic C++ programs.
They may be more using "C with Classes" then full C++. After all, it
probably only takes an hour or two to learn how to move from C to C that
is compatible with C++ (using prototypes, no implicit cast from void*,
avoid keywords like class, etc.). At that point you can almost claim to
be writing C++, add in a few basics like member functions and
inheritance, a few basic template rules, and you are then writing C++.
Maybe even have time for some simple stream I/O and it even starts to
look like basic C++.
In one day they aren't using much of STL, name spaces (except adding a
using namespace std

or other advance features.