随笔分类 -  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 阅读全文
posted @ 2012-07-26 10:07 Buttonwood 阅读(229) 评论(0) 推荐(0)
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, 阅读全文
posted @ 2012-07-25 15:17 Buttonwood 阅读(180) 评论(0) 推荐(0)