C++, http://pastebin.com/3iPjQ8pd Can anybody please tell me what this problem asks for ? I am really confused on what the program should actually do.
Well it would ask the user for a number and then insert it in an array in retriceending order.Also the size should not excess max_size.
retriceending order ? what is this?
ascending order*
So let's say my input is 6. What would be the output ?
No you have to input in an array :/
Ok more precisely, can you tell me an input and the corresponding output ? that would do the trick I think
Okay wait I'll explain. You have in an array [2,4,5,6,7,8] so now you say 6 so it will find it and remove it :)
input(s)* output(s) *
Another case would be that it asked for 3 so it will find and if it doesn't get it in array then it will produce error message NUMBER DOES NOT EXIST
The first thing when you input array is the "I" Case. and when you go to D it goes in the delete case and "X" would exit program :)
So the Switch/Case is used here :)
ohh I see, thanks a lot for explain it to me !
No problem :) If you are not clear with basics please do not use OOL :)
Ok
Even if you wanna do OOPL do Java :) It is the best for now :)
Sorry to bother you, just one last thing, you say "Okay wait I'll explain. You have in an array [2,4,5,6,7,8] so now you say 6 so it will find it and remove it :)" This is "D" case right? But what do I do in "I" case? Say that the number I enter is 6. How will my array be ? 1 2 3 4 5 6 ? @hba
Well do you have the idea of Data structures?
Join our real-time social learning platform and learn together with your friends!