1、首先使用VS创建一个项目,新建一个文件命名为test.cpp
3、然后调用using namespace std声明命名空间
5、然后调用transform和toupper函数将其全部转换为大写
7、调试打印结果如下