J
J
Jasee Cambatch2018-11-03 13:49:26
C++ / C#
Jasee Cambatch, 2018-11-03 13:49:26

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();

How to run it and check if it works?
And where can you install it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Decadal, 2018-11-03
@Decadal

c++
you don't know the language it's written in and want to run it?

V
Vladimir Kuts, 2018-11-03
@fox_12

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?

I
Ihor Bratukh, 2018-11-03
@BRAGA96

C, C++

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question