Trivial questions

Here's an idea. There are a million and one books which teach C++ programming, some of them free.

Read one.