Hello everyone that will help me.

I have two problems.

1.) I am new to programing and i would like to know how to write programs in C++.
2a.) I need a compiler to get all of the programs i have to work.
2b.) I need to know what to save them as (*.cpp)