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