随笔分类 - C/C++
String
摘要:#include <string>string: :size_type //An unsigned integer (data) type string: :npos //The maximum value of the (data) type string:: size_type , //a number such as 4294967295 on many machinesstring strVar;strVar.length()strVar.size()strVar.find(strExp)strVar.find(strExp, pos)strVar.substr(expr1
阅读全文
Cpp 基本(一)
摘要:cin.ignore(intExp, chExp);Here intExp is an integer expression yielding an integer value, and chExp is a char expression yielding achar value. In fact, the value of the expression intExp specifies the maximum number of characters to be ignored in a line.cin.ignore(100, ' \n');cin.ignore(75,
阅读全文
浙公网安备 33010602011771号