> cin>>stus[NUM];
Well this is outside your array.
Perhaps you meant
cin>>stus[x];
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
And get rid of the excess "out<<" in your ostream method. It'll run as is, but give odd results.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228