how can i create game using only c++.

Come up with a game idea and write the code for it in C++. That's what I'm doing right now. I know that seems kind of trollish, but that's basically it. Spend as much time as you need coming up with an idea (the game that I am making now took me over a month to think of), keep practicing your c++, and work on the game whenever you feel like it. It should probably have a GUI in it, so I would suggest learning how to do that, also what I'm doing right now :)