How do I create multiple objects in c++, and how to put string in class name?

Viewed 38

How to enter in place of the class name, a variable of type string? or how to make more clones of the class? without additionally typing new names

I mean is it possible to put a string variable in the class name?

#include<iostream>


class someone{
    //some code
    }
            
    main(){
        // i want to put string here
        someone amogus;
    }
0 Answers
Related