摘要: 第一题 1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 char arr[80]; 7 char ch; 8 cin.getline(arr,80); 9 int i=0;10 c... 阅读全文
posted @ 2014-12-07 22:04 陶修瑕 阅读(189) 评论(0) 推荐(0)
摘要: 函数名称返回值isalnum()如果参数是字母数字,即字母或者数字,函数返回trueisalpha()如果参数是字母,函数返回trueisblank()如果参数是水平制表符或空格,函数返回trueiscntrl()如果参数是控制字符,函数返回trueisdigit()如果参数是数字(0-9),函数返... 阅读全文
posted @ 2014-12-07 21:02 陶修瑕 阅读(262) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 char ch; 6 int ct1,ct2; 7 ct1=ct2=0; 8 while((ch=cin.get())!='$') 9 {10 ... 阅读全文
posted @ 2014-12-07 20:55 陶修瑕 阅读(146) 评论(0) 推荐(0)