| What I mean is:
What do you want your program to do? That is not clear to me.
You said my program doesn't exactly do what is needed. So what does it need to do?
For example, do you want to store the -1 marker as well? Or should it be ignored.
My version ignores the -1.
But if there are less then 10 homework assignments then the rest of the array will be full of garbage, wich will be ugly in output. So I load the empty cells with "-2", wich means "no assignment for homework".
You have to be more clear. From your code I can't discover the domain of the problem, so I don't know how to fix it. Yes it crashes indeed.
__________________ |