Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C++ class constructor syntax

Featured Replies

class client
{
public:
 client(blah& thing, . . .) : uno_(thing), dos_(thing)
 {

 

What does the ":" after the function parameters do? Can't find any info anywhere

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:")

Opeious.pngopei.png

 

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 Rings

Ahrim: 3 Hood, 2 Top, 3 Skirt, 1 Staff..........................2 Plate Skirts.................2 Warrior Rings

Verac: 1 Helm, 3 Tops, 2 Skirts, 1 Flail..........................1 Med........................1 Archer Ring

Guthan: 2 Helm, 5 Tops, 1 Skirt, 0 Spear.....................1 Shield Half.................1 Seers Ring

Torag: 2 Helms, 2 Tops, 5 Legs, 1 Hammer....................4 Hatchets..................1 Missed Divine Sigil (was at bank -,- fml)

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.