J
J
Jasee Cambatch2018-11-04 12:00:17
C++ / C#
Jasee Cambatch, 2018-11-04 12:00:17

How to install prebuilt code in Visual Studio 2017 template?

Hello.
There is a code

#include <iostream>
#include <string>
#include <fstream>      // std::ofstream
using namespace std;
int main()
{
  ifstream in("game.log");
  while (!in.eof())
  {
    string str;
    getline(in, str);
    if (str.find("score") != string::npos)
    {
      cout << str.c_str() << "\n";
    }
  }
  in.close();
  string buff;
  cin >> buff;
  return 0;
}

I want to stick it into the window template (visual studio 2017 program) - namely, into the template called "Windows Classic Application"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question