Press a button every time for a term?

I am actually creating quite a simple program in codeblocks but I don't know how to make it work make a buttom like x for example to pop up my term every time like
(problem is also if it can work even if the cin>> is asking for another input)
1
2
3
  if (x pressed?){
   cout<<".."
}
Last edited on
Topic archived. No new replies allowed.