Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to convert int to string c++

#include <iostream>  
#include <boost/lexical_cast.hpp>  
using namespace std;  
int main()  
{  
 int i=11;  
 string str = boost::lexical_cast<string>(i);  
cout<<"string value of integer i is :"<<str<<"
";  
  
}  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #convert #int #string
ADD COMMENT
Topic
Name
9+8 =