Category : extract

Unable to find the error: #include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; int main () { string line; ifstream myfile ("a.h"); vector<vector<string>> vect; if (myfile.is_open()) { while ( getline (myfile,line) ) { vector<string> temp; if(line.substr(0, line.find(" "))==(string)"int"){ temp.push_back(line.substr(line.find(" ")+1)); } if(line[0]==’}’ && line[line.size()-1]==’;’) { string string_temp = line.substr(1,line.size()-1); cout<<string_temp<<endl; temp.insert(temp.begin(),string_temp); vect.push_back(temp); ..

Read more

I’m trying to extract a list of files in a folder and the subfolders based on specific file attributes. As it’s much more reliable then me doing it by hand, especially considering it’s far over a 1000 files. Some files need to be recovered and they need to know which ones, so files that have ..

Read more