Search found 3 matches

by ayman awadallah
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??????????????
by ayman awadallah
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...
by ayman awadallah
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...