I need no make a program with stacks. Due tomorrow! But I suck at structs, so I spent 3 days trying to make the program and still have it not done yet :( I need your help!!!!
I need to put 10 int numbers into the stack in an increasing sequence. Then I need to add another number without ruining the increasing sequence and delete another number like that from the stack if it was in it before adding the new one.
I mean it was like "2 4 8 11 12 14 15 17 19 21" then I add (for example) "11". I need to delete "11" from stack and add that new "11" into it.
WITHOUT USING CLASSES !!!!
If anyone could send me the code it would be great!! Thank you :)
Excuse my English, I'm Italian :)