What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-02 19:26:31
c++98 check if character is integer
std::string s = "1234798797"; std::istringstream iss(s); int num = 0; if (!(iss >> num).fail()) { std::cout << num << std::endl; } else { std::cerr << "There was a problem converting the string to an intege... Add solution -
Other 2022-01-22 11:30:37
formatting and parsing numbers
Formatting is converting a date, time, number, message or other object from its internal representation into a string. Parsing is the reverse operation. It is the process of converting a string to an internal representation of the date, time, number, mess... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5