|
Page 1 of 1
|
[ 3 posts ] |
|
RobotC 3.51 Request #1 - Pointer Array initialization
Author |
Message |
nateww
Rookie
Joined: Fri Apr 15, 2011 10:29 am Posts: 37
|
 RobotC 3.51 Request #1 - Pointer Array initialization
Not necessarily a bug, but a request none-the-less, and it's really easy to work-around. The last two work fine, but the first fails.
|
Sat Sep 29, 2012 1:34 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: RobotC 3.51 Request #1 - Pointer Array initialization
Your code doesn't look right. buff is declared as a char pointer but the initialization is trying to init an array of char. I just pasted this code to Visual Studio and it gave me the following error. So it is indeed correct for RobotC to reject it.
|
Sat Sep 29, 2012 2:06 pm |
|
 |
nateww
Rookie
Joined: Fri Apr 15, 2011 10:29 am Posts: 37
|
 Re: RobotC 3.51 Request #1 - Pointer Array initialization
Boy, my C is getting rusty. It's been awhile....
|
Sat Sep 29, 2012 9:37 pm |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|