I’d like to send data to nowhere, I mean that I don’t want to print data in console nor in file, but I need some std::ostream object. How to do that?
I’d like to send data to nowhere, I mean that I don’t want to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve used:
recently without problems, although it was flagged as having some potential problems if you looked at it from a certain angle (see the link below).
The following program shows it in action:
The page where I got it from also had this as a probably-cleaner solution (slightly modified to remove the duplication of my first solution above):