is it possible to create something like cout, but which can handle both input and output? i.e.:
(i know it's an endless loop, meant to aggrivate the user)Code:int temp_in=0; while(1) { cboth << "type a number: "; cboth >> temp_in; cboth << "\nyou typed the wrong number. try again\n"; }