摘要:
17.string对象中字符的处理:cctype头文件中定义:isalnum(c) 如果c是字母或数字,则为trueisalpha(c) 如果c是字符,则为trueiscntrl(c) 如果c是控制字符,则为trueisdigit(c) 如果c是数字,则为trueisgraph(c) 如果c不是空格,但可打印,则为trueisprint(c) 如果c是可打印字符,则为trueispunct(c) 如果c是标点符号,则为trueisspace(c) 如果c是空白字符,则为trueisupper(c) 如果c是大写字母,则为trueislower(c) 如果c是小写字母,则为t... 阅读全文
posted @ 2012-11-24 14:36
LatourEiffel
阅读(1214)
评论(0)
推荐(0)
摘要:
1.c++程序有如下后缀:prog.ccprog.cxxprog.cppprog.cpprog.c2.标准库定义了4个IO对象:istream类型对象: cin(see-in):处理输入ostream类型对象: cout(see-out):处理输出 cerr(see-err,标准错误):输出警告和错误信息给用户 clog(see-log):产生程序执行的一般信息3.endl(操纵符)写入输出流时:输出换行并刷新缓冲区4.作用域操作符(::)5.读入未知数目的输入:(示例:未知数目数据求和) 1 #inlude <iostream> 2 using namespace std; 3 阅读全文
posted @ 2012-11-24 11:09
LatourEiffel
阅读(1889)
评论(3)
推荐(2)
浙公网安备 33010602011771号