'How do I get output of text that is showed on the output?

std::cout << "hello" << std::endl;

I want to get the string shown on the output, which is "hello".

c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source