Im trying to take input data from a user as a string of number or letters and store each char on a different array, whats the proper syntax fro this?
you can use this
then ask a question like enter a string and cin >> letters
cout << "type a string? (without spaces) ";
cin >> letters;
cout << "type a number. ";
cin >> numbers;
data from a user as a string of number or letters and store each char on a different array
a loop that will copy the current value of the array depending on its index to another array with the same index
i meant to say take in in series of letteres and numbers and storing each individual character on a seperate index of a single array
cin > x;
a9j2 is entered
and the a is stored to array 9 to array[2}]
what what me the syntax for this?
I don't know. I am not familiar with that. Did you try googling getline(cin,numbers_and_letters) ?? That would be my best guess. but idk how to make the if-else statement to separate that. I'm sorry I'm not that much of a help.