Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.41K
Hi, I'm trying to grab all the input sent to cout to modify and redirect it. I used the example from [url]http://www.dreamincode.net/code/snippet2499.htm[/url], which works fine using the following code: [code] std::ofstream file_sink("encrypted.bin", std::ios_base::binary | std::ios_base::out); basic_xor_filter<char> filter(*(file_sink.rdbuf()), 0x7F); std::ostream output_stream(&filter); output_stream << "Hello World" << std::endl; output_stream.flush(); [/code] The class … |