Answer the question
In order to leave comments, you need to log in
What is this script?
Hello.
There is a script
std::ifstream in("aaa.txt");
while (!in.eof())
{
std::string str;
std::getline(in, str);
if (str.find("score") != std::string::npos)
{
std::cout << str.c_str() << "\n";
}
}
in.close();
Answer the question
In order to leave comments, you need to log in
You have a piece of c++ code taken out of context.
> How to run it and check if it works?
It will not work, because it must be added to make it a complete program
> And where can I install it?
Yes, wherever you want - there and install. What is the end goal?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question