n3paste.de

::

a haskell happstack pastebin

  • New paste
  • View pastes

  • Login

  • About
  • Most recent pastes (filtered)

    Filter pastes (help):

    00:36 - Sun 2012.02.19

    C++

    Paste: /Vj1I/Show related

    Reply to /hMjo/

    #include <algorithm>
    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    class graph {
    public:
      graph(int count)
        : _paths(0)
        , _accessibility(count)
      {
        for (int i = 0; i < count; i++) {
          _accessibility.push_back(vector<bool>(count));
          _accessibility[i].resize(count);
          fill(_accessibility[i].begin(), _accessibility[i].end(), false);
        }
    
        _used.resize(count);
        fill(_used.begin(), _used.end(), false);
    

    23:54 - Sat 2012.02.18

    C++

    Paste: /hMjo/Show related

    No description.

    #include <algorithm>
    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    class graph {
    public:
      graph(int count)
        : _paths(0)
        , _accessibility(count)
      {
        for (int i = 0; i < count; i++) {
          _accessibility.push_back(vector<bool>(count));
          _accessibility[i].resize(count);
          fill(_accessibility[i].begin(), _accessibility[i].end(), false);
        }
    
        _used.resize(count);
        fill(_used.begin(), _used.end(), false);