February 8, 201115 yr class client { public: client(blah& thing, . . .) : uno_(thing), dos_(thing) { What does the ":" after the function parameters do? Can't find any info anywhere
February 8, 201115 yr class student { public: int roll; int marks; protected: char name[50]; }; ':' indicates that from that point on all variables beyond that point are in public scope of the class (for "public:") Barrows Drops:....................................................Dragon Drops:...............Other Drops: Dharok: 2 Helms, 1 Top, 2 Legs, 4 Axes.......................2 Claws Split..................1 Bandos Tassets Karil: 1 Coif, 1 Top, 2 Skirt, 2 Crossbows......................3 Plate legs...................4 Berserker RingsAhrim: 3 Hood, 2 Top, 3 Skirt, 1 Staff..........................2 Plate Skirts.................2 Warrior RingsVerac: 1 Helm, 3 Tops, 2 Skirts, 1 Flail..........................1 Med........................1 Archer RingGuthan: 2 Helm, 5 Tops, 1 Skirt, 0 Spear.....................1 Shield Half.................1 Seers RingTorag: 2 Helms, 2 Tops, 5 Legs, 1 Hammer....................4 Hatchets..................1 Missed Divine Sigil (was at bank -,- fml)
February 8, 201115 yr Author class student { public: int roll; int marks; protected: char name[50]; }; ':' indicates that from that point on all variables beyond that point are in public scope of the class (for "public:") Sorry, forgot about the other ":" I mean the one in here:client(blah& thing, . . .) : uno_(thing), dos_(thing)
Create an account or sign in to comment