Jan 19, 2010 at 12:04pm UTC
Hi guys and girls;
When I'm trying to include the following line in my code I get an error that the file is not found.
#include <strstream>
I'm very new to C++ and I'm currently using microsoft C++ version 6.
Any help will be greatly appreciated.
Jan 19, 2010 at 1:15pm UTC
may i suggest u microsoft visual c++ 2008 since 6 is very old and 2008 is for free, too...
with regards
Jan 19, 2010 at 2:00pm UTC
thanx kbw that worked
Though I'm now trying to convert a string to an integer using strstream and it says this
error C2065: 'stringstream' : undeclared identifier
Unfortunately Incubbus it's in my college so hence such an old version.
Jan 19, 2010 at 2:20pm UTC
In old C++ you have strstreams instead of stringstreams.
stringstreams work with std::strings, strstreams work with char arrays.
You could use them but they are deprecated
Jan 19, 2010 at 3:00pm UTC
So Bazzy a stringstream statement wont work in my version of c++
Jan 19, 2010 at 3:05pm UTC
I think VC++ 6 is just too old
Jan 20, 2010 at 1:02am UTC
If you have <sstream>, you have ostringstream and istringstream. Have you catered for the std namespace?
VC6 is not too old. Plauger's STL works just fine.
If you still have trouble, can you post a small sample that fails.