#include "MT2Q4.h" #include int main() { MT2Q4 mt2q4; std::string text = "#include"; std::string fPath1 = "../MT2Q4.h"; std::string fPath2 = "../MT2Q4.cpp"; std::future f1 = mt2q4.findTextAsync(MT2Q4::findText, text, fPath1); std::future f2 = mt2q4.findTextAsync(MT2Q4::findText, text, fPath2); if (f1.get()) std::cout << "\n found \"" << text << "\" in file \"" << fPath1; else std::cout << "\n didn't find \"" << text << "\" in file \"" << fPath1; if (f2.get()) std::cout << "\n found \"" << text << "\" in file \"" << fPath2; else std::cout << "\n didn't find \"" << text << "\" in file \"" << fPath2; std::cout << "\n\n"; return 0; }