perkeyone
something clever
- Reaction score
- 71
hey guys,
i keep forgetting the syntax of cin.get and getchar etc
anyways, i am trying to design a c++ program that will prompt for the user to input something like this
and i want to store that input in a 2d array
i want to ignore the spaces
(so it wont matter if the user spaces it out or not)
i keep forgetting the syntax of cin.get and getchar etc
anyways, i am trying to design a c++ program that will prompt for the user to input something like this
0 0 0 0 r
0 1 1 1 r
1 0 0 1 r
1 1 1 2 r
and i want to store that input in a 2d array
i want to ignore the spaces
(so it wont matter if the user spaces it out or not)