This function accepts c string as a parameter. We can leverage scanf function to convert string to an integer type. My 5th list âsscanfâ is lovely to convert it. Dont call library functions your code should perform the conversion itself It is fine to use constants from limits.h You should write conforming C code. Std::cout << "error" << '\n' } return 0 } b> Output: #include Ĭatch (boost::bad_lexical_cast const
0 Comments
Leave a Reply. |