Dynamic entries by user as user input
Hi We can take dynamic length input using cin into while loop... Once user provide 0 or negative input, one can break loop. This imposes user to remember break condition and need to provide extra user input to break the same... Another option is to take input seperated by space and store it into string variable... Post this , we can split the same and get all user entries into array or vector. here limitation is that user has to provide values seperated by space. Now , what can be done when user input must be separated by new line and number of input is not fixed along with user adamant not to provide exit condition of do while loop.. Any thoughts would be of great help...!