Step 1: Install Compiler/IDE (I like to use Code::Blocks/G++)
Step 2: Write program (You can learn C++ from many sites, I taught myself using learncpp.com)
Step 3: Compile program (I set up Code::Blocks to use g++, but using the built-in MinGW works too)
My guess is that you have either been skipping class, or not paying attention during it, and now an assignment is due and you want strangers on the internet to do your assignment for you. If that is the case you have come to the wrong site. However if you need help fixing your code or IDE or compiler, that is where we can help. We will not do your work for you, but we are happy to help you once you have made a genuine effort.