dimanche 30 janvier 2022

Can I Create a class inside a function in C++ ? Is the same possible with a structure? [duplicate]

    int main(){
    class first
    {
    int hi;
    };
    return 0; }

Is this class inside a function possible ?

Aucun commentaire:

Enregistrer un commentaire