摘要: 1.需要#include <ctype.h> 才能用toupper,tolower,即大小写转换 char c = str[i] >= 'a' ? toupper(str[i]) : tolower(str[i]); 2.vector<int>(n,i);:初始化大小为n,初值为i的vector s 阅读全文