Search found 3 matches
- December 6th, 2020, 4:38 pm
- Forum: Everything
- Topic: homework 16 inter error help
- Replies: 3
- Views: 3037
Re: homework 16 inter error help
but how come it works with chili in the tutorial??????????????
- December 6th, 2020, 4:37 pm
- Forum: Everything
- Topic: homework 16 inter error help
- Replies: 3
- Views: 3037
Re: homework 16 inter error help
answer was by mbozzi @cplusplus std::istream_iterator<std::string>(std::istringstream(nb)) the expression std::istream(nb) is an rvalue, which is disallowed because it is error prone. For example, if it compiled, the declaration std::istream_iterator<std::string> it(std::istringstream(nb)); would de...
- November 29th, 2020, 3:18 pm
- Forum: Everything
- Topic: homework 16 inter error help
- Replies: 3
- Views: 3037
homework 16 inter error help
// Problem 2: // output nambies as string of digits without spaces // (can be done in single statement!) std::cout << "<< Number Words to Digits >>" << std::endl; { std::transform( std::istream_iterator<std::string>(std::istringstream(nambies)), std::istream_iterator<std::string>(), std::ostream_it...