|
-
March 8th, 2006, 08:44 AM
#1
debug error using struct
I tried to execute the following code...
#include "def_struct.c"
int main()
{
float Max_Eval;
int level =0;
result=PSO(level, Max_Eval);
}
where pso is a structure
struct position PSO(int level, float Max_Eval)
{
int add_option=1;
int already;
.........
}
and struct position is defined in def_struct.c
struct position {struct vector p;struct f f;};
struct position PSO(int level, float Max_Eval);
When I debug the code,the program throws an exception while trying to call pso.Can anyone help me in this regard.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|