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.
 
Two questions:

1. I don't really understand what you are asking. Could you try rephrasing the question.

2. What programming language are you using?
 
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).