Maybe he will launch a new Crusade, liberation in the name of the Lord... ;P
E
evaj03
@evaj03
Posts
-
Which Part of British do you not understand? -
C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values.Not sure if this is applicable to MFC, but the stringstream library will do this:
#include
#includeint main( )
{
std::string inString( "10.88" );
int outNum;std::stringstream ss( inString );
ss >> outNum;
std::cout << "As Number [" << outNum << "]" << std::endl;
}Sample output would be: As Number [10]