Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
Hi I am trying to make arrays inside a structure.. the structure looks like, [code=c++] struct mystruct{ int val; int num; string state[]; mystruct *next[]; }; [/code] The next pointer array works fine but state array gives segmentation fault. I have an array of this structure . mystruct Graph []; |
|
I have a problem passing an array containing pointers. Here's the function.. [code=c++] void jointtree(Parent *clique[], int nodes); [/code] I am calling it the following way.. [code=c++] jointtree(clique, nodes); [/code] where clique is. [code=c++] Parent *clique[nodes]; [/code] |