C/C++常用api及基本库

C++基础::函数、类、类型所在的头文件 && 便捷函数 && 接口的介绍

C语言系列

函数 所在库 补充
toupper
tolower
<ctype.h>

C++系列

函数 所在库 补充

toupper/tolower

int __cdecl toupper(_In_ int _C);
int __cdecl tolower(_In_ int _C);

接受返回的都是整型类型,准确地说是ASCII码;

std::cout << toupper('c') << std::endl;
                        // 67
std::cout << char(toupper('c')) << std::endl;
                        // C

你可能感兴趣的:(api,C语言,库)