User profile: shacktar

User info
User name:shacktar
Location:Ontario, Canada
History
Joined:
Number of posts:1159
Latest posts:

How do you dynamically allocate memory for an std::array (C++11)
A [tt]std::array[/tt] must have a size known at compile time. You should use a [tt]std::vector[/tt] ...

problem about putting prototypes in header files.
It compiles fine for me (Visual Studio 2012). Which line is giving you the error?

Deleting linked list from the beginnig
[code]temp1=head->getNext(); while(temp1!=NULL) { ...[/code] Here, in the case where [tt]temp1 =...

How do I make a function global?
You should make it so "functions.h" only contains the prototypes like so: [code]#ifndef function_h ...

To quit safely
[quote]if you type "N" then "Y", that is when the bugs show up[/quote] This is because you're callin...