1#include <iostream>
2#include<string>
3using namespace std;
4int main()
5{
6int i = 11;
7float f = 12.3;
8string str = to_string(i);
9strinf fstr = to_string(f);
10}
1#include <string>
2using namespace std;
3
4int iIntAsInt = 658;
5string sIntAsString = to_string(iIntAsInt);
1#include <iostream>
2#include<string>
3using namespace std;
4int main()
5{
6 int i=11;
7
8string str= to_string(i);
9
10cout<<"string value of integer i is :"<<str<<"\n";
11
12return 0;
13}