games_icon
June 23rd, 2008, 02:02 AM
Here's my prog running on solaris10.
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct ThshldActionStat
{
char thshldAction[25];
};
const int MAX_THSHLDS_PER_GRP_CD = 50;
typedef ThshldActionStat ThshldGroupActions[MAX_THSHLDS_PER_GRP_CD];
int main()
{
ThshldGroupActions *thshldGroupActionStatsOver_;
ThshldGroupActions *thshldGroupActionStatsUnder_;
thshldGroupActionStatsOver_ = new ThshldGroupActions[55 + 1];
thshldGroupActionStatsUnder_ = new ThshldGroupActions[55 + 1];
int i,j;
for ( i=0;i<59;i++ )
for(j=0;j<67;j++)
{
strcpy( thshldGroupActionStatsOver_[i][j].thshldAction, "" );
strcpy( thshldGroupActionStatsUnder_[i][j].thshldAction, "" );
}
return 0;
}
It is running fine... which should drop core in general....
Can some one please help me here to say what's happening here?
Thx in advance!
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct ThshldActionStat
{
char thshldAction[25];
};
const int MAX_THSHLDS_PER_GRP_CD = 50;
typedef ThshldActionStat ThshldGroupActions[MAX_THSHLDS_PER_GRP_CD];
int main()
{
ThshldGroupActions *thshldGroupActionStatsOver_;
ThshldGroupActions *thshldGroupActionStatsUnder_;
thshldGroupActionStatsOver_ = new ThshldGroupActions[55 + 1];
thshldGroupActionStatsUnder_ = new ThshldGroupActions[55 + 1];
int i,j;
for ( i=0;i<59;i++ )
for(j=0;j<67;j++)
{
strcpy( thshldGroupActionStatsOver_[i][j].thshldAction, "" );
strcpy( thshldGroupActionStatsUnder_[i][j].thshldAction, "" );
}
return 0;
}
It is running fine... which should drop core in general....
Can some one please help me here to say what's happening here?
Thx in advance!