Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ ss


stringstream ss;

string numberStr = "654321";
int num;
ss << numberStr; 
ss >> num;

cout << "str type:" << numberStr <<endl;
cout << "convert to num:" << num <<endl;
Source by dotblogs.com.tw #
 
PREVIOUS NEXT
Tagged: #ss
ADD COMMENT
Topic
Name
2+4 =