Hi, I am a beginner and new here. I have a question which might be very easy for you all so thought of asking a good solution.
I need to read an integer from console into an array in c++ , can any one please help!
for example: I want output should be like
user enters: 1234
the contents should get stored in an array as a=1 ,a=2,a=3,a=4
Any idea on this would be a great help, either in the form of one liner code or construct that I think I am missing because I am new to ths language.