Code:
#include<iostream.h>
#include<string>
#define SIZE 5
int main()
{
int firstString[SIZE]={0}; //store array of ints
int i;
for (i = 0; i<6 ; i++) //take in six numbers
cin >> firstString[i];
cout << "firstString is: " << endl; //output message
for (i = 0; i < SIZE ; i++) //output original array
cout << firstString[i] ;
getchar();
return 0;
}
I don't know if this will help you?. I did this in c++builder in a console and the input i tried was 1 2 3 4 5 6 . The output was 1 2 3 4 5 . It doesn't store the last character entered because the original array was only 5 in size.
Colin