Question: In c++, make a method named ReadWrite, which takes no parameters. It will read from standard in until the input is p, then stop and
In c++, make a method named ReadWrite, which takes no parameters. It will read from standard in until the input is "p", then stop and return everything that was inputted back out to stdout on a single line, with an end-line at the end.
example input:
ready, set
go
p
example output:
ready, set go
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
