- #71
I like Serena
Homework Helper
MHB
- 16,336
- 258
mathmari said:[m]The planetary system doesn't contain any asteroids
D 7620203 5000 failed
[Thread 5184.0x798 exited with code 0]
[Inferior 1 (process 5184) exited normally][/m]
But why doesn't it contain any asteroids?? (Wondering)
Didn't we add the asteroids with the following function??
Which information do you have in your [m]file.txt[/m] regarding solid=7620203 and gap=5000? (Wondering)
Suppose you add:
Code:
for(i=0; i<Sfreep; i++){
p=StarS[i].plasy;
while (p != NULL && p->solid != solid){
p=p->next;
}
}
[color=red]printf("asteroid_constitution(as=%d, gap=%d, solid=%d) p=%p\n",
as, gap, solid, p);[/color]
if (p->asteroids==NULL){
What is the output that you get regarding solid=7620203? (Wondering)