struct identifier {
Memberlist
};
type identifier[=value|{value}][, identifier];
using namespace std; if I put it in my manin.
struct PlayerT {
int age;
float weight;
string name;
};
int main() {
PlayerT player1,
player2{3,20.0,"Bob"};
varname.fieldname
player1.name = "Fred";
player1.age = player2.age;
cout << player1; // will not compile
struct NameT {
string first, middle, last, title;
};
struct PlayerT {
NameT name;
int age;
float weight;
};
PlayerT player1;
player1.name.first = "Bob";