|
-
February 8th, 2011, 10:29 AM
#1
Char Array problem
Hello everybody! I've a problem with a char array: why i can't give a char in a position of the array? ex:
char array [7]; //declaration of a char array 7 elements
for (int i=0;i<7;i++)
array[i]='x';
array [5]='y'--->error
How could I insert the char 'y' in the 5th position of the array?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|