[编程题]字符个数统计 noskipws + set
字符个数统计
http://www.nowcoder.com/questionTerminal/eb94f6a5b2ba49c6ac72d40b5ce95f50
#include <iostream>
#include <set>
using namespace std;
int main()
{
set<char> s;
char c;
cin >> noskipws;
while (cin >> c) {
if (c == '\n') {
break;
}
if (c >= 0 && c <= 127) {
s.insert(c);
}
}
cout << s.size() << endl;
return 0;
}

