How to Exit the input operation by entering a certain character

Home / Uncategorized / How to Exit the input operation by entering a certain character

Question:
I am trying to make the user enters integer elements as wants then store them in an array using while loop.

The size of the array will not be entered directly but will be calculated using the user input.So i will use the dynamic memory allocation method.

I suggested using while because i do not know how many inputs will the user enter.My problem is how to make the loop stops. I mean how to make the user stops entering the numbers for example by entering a certain character.


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *