dimanche 6 décembre 2020

Dev- C++ is giving me "error 'end' was not declared in this scope"

It's strange cuz when i ran the code in online compilers, it works totally fine.

    string questionOneA="Do you like text adventure games?";
    for (char(questionOneA): questionOneA)
//error is in above line    

    {
        this_thread::sleep_for(chrono::milliseconds(60));
        cout << questionOneA << flush;
    }

Aucun commentaire:

Enregistrer un commentaire