I updated the function definition and return value (this is because i didn't understood what are you going to return) and you were using cin in the function to read values into some parameters that...
Move the definition of Initialize into the header (that contains the declaration of GetValue<T>) and it should work, see this faq for more information:...
The only issue i see in the code you posted is that GetValue<T>::Initialize() is not public (or protected) but that shouldn't cause an undefined error, so are you using some "friend-based" mechanism...
You are getting the wrong year because tm struct has a particular year representation see the "year format" here: http://www.cplusplus.com/reference/ctime/tm/
@GCDEF agree with you that it shouldn't, but it can and there can be some very tricky situations regarding this fact.
I talk about for example uninitialized bool which can return false if compared...
Pointers just store the address of a variable, the variable itself can be allocated on the heap or on the stack (if it's allocated on the heap you need to call delete on the pointer to free the...
An bool in c++ is 1 byte (8 bits) if you store the value 7 in that byte and compare it with the value 1 (true) it will go on the false branch (because those values are not equal) even if they both...
Just a little suggestion, the exercise sample arrays suggest your class should be a template, so i say you start with a template class from the beginning, so the code should look something like:
It's a naming convention: C++ standard libraries header files don't have the .h extension and also the C standard libraries are named with c prefix and without extension (usually old names like...
I don't think that you should start with the reading quite big projects source code, first finish the book, do all the exercises from the book (maybe get other more advanced book) and when you are...
The original problem was "working" Qt...
I really recommend to download (and install) the Qt SDK for Windows, witch comes bundled with MingW compiler (and make tool) with qmake (tool specific to Qt...
If they do, or your _LOG_FUNCTION_ will be generic, you should search for: "perfect forwarding", it's from c++0x, so not many compilers will have this...
The data members are constructed in order of declaration in the class definition, so j first and i second, and the syntax: A():i(func1()),j(func2()) does initialization in the same time with...
int factorial (int n) // function that returns an int value and takes one int parameter
{
int fact = 1;
for (int i=1; i<=n;i++) { // this is a for-loop, this execute the code for n times
...
Yes, it is possible, that won't be an actual build-in integer (because for example: 128bit integer you create a class that has 4 32bit int members and operate with that) but with operator overloading...