作者wafu (wafu)
看板EE_DSnP
标题[问题] string 的toupper
时间Mon Apr 13 02:16:13 2009
请问一下,
如果我想要一次对整个string作to upper,
应该怎麽作?
我找到的做法是
http://www.cnblogs.com/oomusou/archive/2009/02/16/529409.html
可是在我include完
#include <algorithm>
#include <cctype>
之後
make时还是出现这样的错误
cmdParser.cpp:164: 错误: 对 transform(__gnu_cxx::__normal_iterator<char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, <unresolved overloaded
function type>) 的呼叫没有匹配的函式
不知道哪里出问题了??
谢谢大家!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.251.220