Store values in array

How do I have user input 2 integers and store them in 2 separate arrays?
1
2
3
4
5
array1 int[1];
array2 int[1];

cin >> array1[0];
cin >> array2[0];
Hello tidematic,

Do not double post. It is confusing to everyone.

http://www.cplusplus.com/forum/beginner/228196/

Andy
it isnt exactly the same question, but it begs us asking 'what exactly are you wanting to do' as the two questions are similar.

you can also create a user defined type that stores 2 values, which may be more appropriate than an array, depending on what you really need.

you can make an array of that type, where each location holds 2 values. This may also be useful, depending on what you want to do.

but we need a better question if these very simple examples are not what you needed.
Topic archived. No new replies allowed.