How i stop a repetitive structure using keyboard input

Samy0806

Distinguished
Sep 20, 2010
3
0
18,510
Hello, i'm quite new to programming and i heard there is away of stopping a repetitive structure using keyboard input. Something like:do....while ( press enter ). Could anyone tell me how could i do this please. Thank you.
 

Samy0806

Distinguished
Sep 20, 2010
3
0
18,510
sorry i've forgot. I am using c++ and i want make the program repeat a certain set of instructions until i press a key ( enter for example).