Post AIopzlhNBCg26p4vHk by vftdan@mastodon.ml
(DIR) More posts by vftdan@mastodon.ml
(DIR) Post #AIopzlhNBCg26p4vHk by vftdan@mastodon.ml
0 likes, 0 repeats
#c++ #cpp #emscripten #programmingI have this c++ code:```...stringstream stream("23.4f");float f;char c;stream >> f;stream.get(c);cout << "Float = " << f << endl << "Character = " << c << endl;...```In ideone.com it works as expected (f = 23.4, c = 'f'). But when I have a code, that should be essentially equivalent, and I compile it with em++ (emscripten), I get f = 0 & failed stream. What could be causing this problem?