I don’t know what is going on in this piece of code. this is from a working piece of code that I have to understand.
orange::orange():
hello_short(false),
hello_long(false),
foo(NULL),
foo2(NULL),
quiet(false)
{
res = NULL;
good = true;
}
simplies says that you are defining a function of the class orange (the left part), the function is called “orange” (the right part) and takes no arguments. Since the function is named the same as the class and returns no value, it’s aconstructor of your class
The rest is an initialisation list : http://www.cprogramming.com/tutorial/initialization-lists-c++.html