I was trying to use the stringstream class to convert numbers to strings, and I got an error saying the <sstream> file could not be found:
Code:
#include<iostream>
#include<string>
#include<sstring>
using namespace std;
int main()
{
string data;
ostringstream outStr(data);
//Data to be converted to a string:
int num1= 50;
double num2 = 123.6;
outStr<<num1<<" "<<num2<<" ";
cout<<data<<endl;
return 0;
}
C:\Beginning C++\test\test.cpp(3) : fatal error C1083: Cannot open include file: 'sstring': No such file or directory