C++读取数字,直到输入非数字字符为止的算法 C++读取数字,直到输入非数字字符为止的算法完整源码(定义,实现,main函数测试) C++读取数字,直到输入非数字字符为止的算法完整源码(定义,实现,main函数测试) void fastinput(int *number) { // variable to indicate sign of input integer bool negative = false; register int