Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (christos):

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.

OpenStudy (hba):

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.

OpenStudy (christos):

retriceending order ? what is this?

OpenStudy (hba):

ascending order*

OpenStudy (christos):

So let's say my input is 6. What would be the output ?

OpenStudy (hba):

No you have to input in an array :/

OpenStudy (christos):

Ok more precisely, can you tell me an input and the corresponding output ? that would do the trick I think

OpenStudy (hba):

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 :)

OpenStudy (christos):

input(s)* output(s) *

OpenStudy (hba):

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

OpenStudy (hba):

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 :)

OpenStudy (hba):

So the Switch/Case is used here :)

OpenStudy (christos):

ohh I see, thanks a lot for explain it to me !

OpenStudy (hba):

No problem :) If you are not clear with basics please do not use OOL :)

OpenStudy (christos):

Ok

OpenStudy (hba):

Even if you wanna do OOPL do Java :) It is the best for now :)

OpenStudy (christos):

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

OpenStudy (hba):

Well do you have the idea of Data structures?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!