Permanent Bans - 09/20/2012 - 09/26/2012
#11
ChosenFruit Wrote:lol, so many random commas in the middle. Me thinks that nexon wanted to screw w/ Notify's counter~

Code:
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>

int main() {
    std::ifstream in("nexonbans.txt");
    std::string str;
    std::vector<std::string> users;
    if(in.is_open()) {
        while(getline(in,str,',')) {
            users.push_back(str);
        }
    }
    users.erase(std::remove_if(users.begin(), users.end(), [](const std::string& s) {return s.empty();}), users.end());
    users.erase(std::remove_if(users.begin(),users.end(),[](const std::string& s){ return (s == " ");}), users.end());
    std::cout << "Total banned users: " << users.size();
}

870.

(There aren't actually any extra commas)

Oh I see. The HTML is too long and it stops with 3 periods.


Total banned users: 9522
Reply


Messages In This Thread
Permanent Bans - 09/20/2012 - 09/26/2012 - by Locked - 2012-09-30, 07:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)