Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8835247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:13:00+00:00 2026-06-14T09:13:00+00:00

i dont understand some things in a code from a tutorial first one: what

  • 0

i dont understand some things in a code from a tutorial
first one: what is that comma “,” doing in the middle there? is it mb a overloaded operator?

u32 TimeStamp = irrTimer->getTime(), DeltaTime = 0;

next i have a weird constructor from class CharacterDemo, why is there a “:” following some variables with weird brackets? im guesseing they are beeing initialized with the value in the brackets.. ?

CharacterDemo::CharacterDemo()
:
m_indexVertexArrays(0),
m_vertices(0),
m_cameraHeight(4.f),
m_minCameraDistance(3.f),
m_maxCameraDistance(10.f)
{
    m_character = 0;
    m_cameraPosition = btVector3(30,30,30);
}

im rly curiouse, explanation much appriciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:13:01+00:00Added an answer on June 14, 2026 at 9:13 am

    It’s an initialization list.

    It calls the constructors of the members and parent classes of the specified class.

    Note that you can only use it in the constructor of a class (because it only happens at its construction).

    [edit] For your first question, it’s a way to declare multiple variables of the same type at once. Note that it will not always work as expected : int * a, b will declare a variable a of type int *, and another variable b of type int (not a pointer).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is something that I really don't understand with the HttpListener. The code below
When reading Enlightenment's code, I found some things about C I don't understand. I'll
I'm working through the RoR tutorial by Michael Hartl. Here's some code from SessionsHelper:
I'm struggling with core data... I don't understand some things so if someone could
There is something I dont understand in core data. I have created a NSManagedDocument,
I have the following code ( from a Ruby tutorial ): require 'thread' count1
I have an inner class that downloads some images from the server. The problem
there's something I'm struggling to understand with SQLAlchamy from it's documentation and tutorials. I
I don't understand the concept of the fetch function. I am doing a tutorial
I have some Objective-c code that makes an asynchronous (I think lol) call to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.