working on String Streams in c++
This video tutorial explains how to use string streams in c++.
You are gonna learn what are string streams, how to use them in detail with example.
source code for this tutorial
#include <iostream> #include <sstream> using namespace std; int main() { string number = "44"; stringstream sso; sso << number; int input; sso >> input; cout << input+2<<endl; cout << number+"2"<<endl; return 0; }