Search Results

Search: Posts Made By: nmset
Forum: Programming 04-16-2012
2,378
Posted By nmset
Yes, it took me some time to understand that g++...
Yes, it took me some time to understand that g++ has been lenient, none of the compiled code should have run with such huge arrays.


Not my intent to be critical at c++, not at all !

I would...
Forum: Programming 04-16-2012
2,378
Posted By nmset
#include <math.c> ... ... const int nb =...
#include <math.c>
...
...
const int nb = 30;
wchar_t t[(int) pow(2, nb)][nb];

If class A is not instantiated, no seg fault occurs, up to nb = 30 (above is int upper limit), on both Fedora...
Forum: Programming 04-15-2012
2,378
Posted By nmset
C++ Segmentation error with bi-dimensional array
Hello,

I'm experiencing a weird seg fault at run time when initializing a bi-dimensional array and initializing a class.
Please see below code and comments describing the error and the instances...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy