++

I 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?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.ml/users/vftdan/statuses/108194399089467983 on your instance and quote it. (Note that quoting is not supported in Mastodon.)