Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

convert a int to string c++

#include <iostream>
#include<string>
using namespace std;
int main()
{
int i = 11;
float f = 12.3;
string str = to_string(i);
strinf fstr = to_string(f);
}
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #convert #int #string
ADD COMMENT
Topic
Name
7+1 =