![]() |
| ||
| setting size of 2-D array at constructor issue I am trying to pass the size of the matrix array during the constructor but its giving me the following error. Is there a different way to do this? In file included from Main.cpp:1:Line 13 is the constructor declaration. Here is my code #include<string> Thanks in advance |
| ||
| Re: setting size of 2-D array at constructor issue I find that it compiles fine, after you take the excess [numberOfNodes. I would think that removing the const keyword from your parameter list would clear the error you're getting. FYI, you're not declaring or allocating a 2D array. bool* matrix;will be a 1D array only. (using VC++ 2005) |
| ||
| Re: setting size of 2-D array at constructor issue o ok that makes sense. thanks |
| All times are GMT -4. The time now is 1:11 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC