Top "Initialization" questions

Initialization deals with the task of initializing the contents of your data structure.

What is the correct way to start a mongod service on linux / OS X?

I've installed mongodb and have been able to run it, work with it, do simple DB read / write type stuff. …

linux mongodb service initialization
Efficiency of Java "Double Brace Initialization"?

In Hidden Features of Java the top answer mentions Double Brace Initialization, with a very enticing syntax: Set<String&…

java performance collections initialization
Convenient C++ struct initialisation

I'm trying to find a convenient way to initialise 'pod' C++ structs. Now, consider the following struct: struct FooBar { int …

c++ struct initialization
Do the parentheses after the type name make a difference with new?

If 'Test' is an ordinary class, is there any difference between: Test* test = new Test; and Test* test = new Test();

c++ constructor initialization new-operator c++-faq
Compiler error: "initializer element is not a compile-time constant"

When compiling this code, I get the error "initializer element is not a compile-time constant". Can anyone explain why? #import "…

objective-c cocoa initialization compiler-errors global-variables
Assign multiple values to array in C

Is there any way to do this in a condensed form? GLfloat coordinates[8]; ... coordinates[0] = 1.0f; coordinates[1] = 0.0f; coordinates[2] = 1.0f; coordinates[3] = 1.0…

c arrays initialization declaration
How do C++ class members get initialized if I don't do it explicitly?

Suppose I have a class with private memebers ptr, name, pname, rname, crname and age. What happens if I don't …

c++ initialization member-initialization
Object creation on the stack/heap?

The following code creates an object on the stack: Object o; When creating an object on the heap we can …

c++ initialization stack heap
How can I initialize a LinkedList with entries/values in it?

So I know how to have a linked list and use add method to input entries by entries. However, I …

java linked-list initialization
Java: define terms initialization, declaration and assignment

I find the defs circular, the subjects are defined by their verbs but the verbs are undefined! So how do …

java initialization declaration variable-assignment