how to create a new row of values in an array?

ive searched the forums and the web cant find what im looking for

how do you create a new row of values in an array from user input or cin?

You have to allocate new memory for the array. This is tricky and I'm unsure of your skill level. If you need dynamic arrays, I suggest using vectors instead. If you have some code to look at, I can show you how to implement vectors or how to increase the size of the array.
im looking at the tutorials under documentation on this site under Array

and for what im needing to do is create a new row of values in the same array
how do you put in new braces and add the comma from cin

int billy [] = { 16, 2, 77, 40, 12071 },
{ 1, 2, 3, 4, 5 };

or do i need to use vectors instead?
Topic archived. No new replies allowed.