<iostream>里包含<cctype>!?
今天看到一片代码没有#include<cctype>就使用了touppper()。颠覆了为往日的观念。为自己在使用的时候一直#include<cctype>。
然后为开始查阅cplusplus手册,结果也没看懂它是否包含cctype。
然后为用vs2012做跳转,也没找到。
过来请教一下大神。
2015-04-09 21:32
程序代码:#include<iostream>
using namespace std;
int main() {
cout<<(char)toupper('a')<<endl;
}
2015-04-09 21:35
2015-04-09 21:51
2015-04-10 12:07
2015-04-10 12:10
2015-04-10 12:15
2015-04-10 13:26

2015-04-11 22:01