If "(waitForInterruptSys (iOnePin, -1)" represents your button press, change the
if statement to a
while statement ...
if (waitForInterruptSys (iOnePin, -1) >0)
{
cout<<"Push Button is pressed"<<endl;
... becomes ...
while (waitForInterruptSys (iOnePin, -1) <= 0) NULL;
cout<<"Push Button is pressed"<<endl;
The "NULL" is just a placeholder since the while statement (like the if) expects a statement to follow. This effectively says "while (no button is pressed) do nothing".