Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1.     for (vector<string>::iterator i = groups.begin(); i != groups.end(); ++i)
  2.     {
  3.         string k = *i;
  4.         p += "List.txt";
  5.         cout << p << endl;
  6.         cout << p.c_str() << endl;
  7.         inStream.open(p.c_str());
  8.         if (inStream.is_open())
  9.             cout << "is_open = true for " + *i << endl;
  10.         else
  11.             cout << "is_open = false for " + *i << endl;
  12.         while (getline(inStream, next))
  13.         {
  14.             cout << "Comparing " + next + " to " + n + " right now." << endl;
  15.             if (next == n) {
  16.                 memberOf.push_back(*i);
  17.                 cout << "memberOf.push_back(" + *i + ");" << endl;
  18.             }
  19.         }
  20.         inStream.close();
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement