//int to string add string to int
#include<iostream>
#include<conio.h>//getch()
#include<string>
#include<sstream>
using namespace std;
void main()
{
int b=121234,a;
string str,st="7894456";
stringstream istr,stri;
//int to string
istr<<b;
istr>>str;
//string to int
stri<<st;
stri>>a;
cout<<a<<endl;
cout<<str<<endl;
// int i=str.length();
// cout<<i<<endl;
cout<<sizeof(a)<<endl;
cout<<sizeof(str)<<endl; //check the type
getch();
// system("pause");
}