mercredi 29 septembre 2021

Will this create an object of Sales_data, or it will create variables inside the class?

I'm a 13 year old who's trying to learn C++. I bought C++ Primer and I came across something confusing for me:

struct Sales_data {/**/ } acum, trans, * salesptr = nullptr;
    struct Salees_data {};
    Salees_data accumm, transs, * salessptr;

I do understand what is a struct and class but I have no idea what this statement will do. Will it create objects of the Sales_data struct, or it will create variables inside the Sales_data struct?

Aucun commentaire:

Enregistrer un commentaire