//以下代碼為何提示重復(fù)定義了成員方法,希望大神能給予解答#include#include #include#include #include //#include "myClass.h"using namespace std;void eraseStr11(const char & c,string & s){if(!isalpha(int(c)))s.erase(c);}int main(){string str;getline(cin, str);string strTmp(str);for_each( str.begin(), str.end(), bind2nd(ptr_fun(eraseStr11), str));
cout << strTmp;
system("pause");
return 0;}
- 1 回答
- 0 關(guān)注
- 1084 瀏覽
添加回答
舉報(bào)
0/150
提交
取消