std::cin
instead. Then you will have to loop through the returned string and assign it to the array.bufige wrote: |
---|
Use std::cin instead. Then you will have to loop through the returned string and assign it to the array.This won't take more than few lines if you use c++11. |
jwilt wrote: |
---|
How can I use the getline function to get a string of numbers 30 digits long, and store each digit in one spot of the array? |
|
|
|
|