loops - How to Exit the input operation by entering a certain character -


i trying make user enters integer elements wants store them in array using while loop.

the size of array not entered directly calculated using user input.so use dynamic memory allocation method.

i suggested using while because not know how many inputs user enter.my problem how make loop stops. mean how make user stops entering numbers example entering character.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -