#c++ #cpp #emscripten #programming
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?