i started of with this but i dont know if it is correct this is advanced level code and i want to try it out but i am very stuck. i dont know if it is right a little help please
It is nowhere near advanced, it is as basic as it gets.
You created a main function, and you have some cout statements, so that is a start. But I suggest you actually study a bit of basic programming first before diving in head first.
You can google c++ basics. You can even type it on youtube and learn the basics there too.
Once you've done all of this. Try and make the program, if you run into problems feel free to post it and ask specific questions. And please, put your code between code tags so it is readable - http://www.cplusplus.com/articles/jEywvCM9/
The little code snippet you've posted has too many errors to go through one by one and demonstrates a poor grasp of C++ basics. I suggest you get yourself a good text-book first and go through the fundamentals. My personal recommendation for introductory C++ is “C++ Primer Plus (5th ed)” by Stephen Prata but I'm sure there are many others. Pick one that suits your style and do the exercises following each chapter