You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
dbInput("Enter some integer: ", buffer, &copiedChars);
buffer[copiedChars] = 0; // Ensure that the copied string is null-terminated
ss << buffer; // Write the input string to the stringstream
ss >> iValue; // Read (the first) value possible to be interpreted as an int from the stringstream
// Do whatever you want with the value here
Because Oct(31) = Dec(25)
Login to post a reply