mercredi 4 janvier 2023

For/foreach, reading from files (c++), and getting information for the computer [closed]

Like, im making an (.myfileformat) reader and i ask myself: "How can i make this, like how to read with for/foreach/if loops?" this is a piece of, my code:

for-each("myfilecode" in filestring){
    /* My, code. */
}

fileinput.close();

I was expecting, that it reads from my file, the things I need like for example: if "Printing(Hello)" was in my file, that it does:

std::cout << "Hello" << std::endl;

but it does not work, errors:

Im too lazy to put it in, but it does not work, like there are more than (30-lines of errors)

Aucun commentaire:

Enregistrer un commentaire