I give up and am asking for help here. Im playing around with arrays and trying to get characters from within the array.
This will spit out a bunch of strange symbols and then the ",2,3,4,5". What am I doing wrong this is driving me nuts.Code:int main()
{
char array[20] = "1,2,3,4,5,6,7,8,9,0";
char ch[20];
int i;
for(i = 3; i < 7; i++)
{
ch[20] = ch[20] + array[i];
}
cout << ch;
cout << endl;
return 0;
}