How to capture in game view and display it?

and one more thing i dont care if its in c++
and thank you