samedi 20 août 2022

what's the best way to hold constants in c++

I have some constant values such as color values, what's the best way to define and use them through projects? I've already tried static global variables in a single c++ file and included it in my files.

something like this:

    const std::string appName = "";

are there any other better ways to do so?

Aucun commentaire:

Enregistrer un commentaire