writing a macro to an array

Feb 14, 2016 at 10:34pm
I am writing a code to produce a survey rating a product 1-10 and am stuck on writing a macro to an array, does anyone know how to write it without errors. my problem is :


ratingCounters[RESPONSE_VALUES] = { 0 };

RESPONSE_VALUES is the array.
Feb 14, 2016 at 10:36pm
Feb 15, 2016 at 1:07pm
Sorry. My computer wasn't letting me post so I guess it accidentally posted twice when it unfroze, thanks for helping me with that. But was no help for my actual problem.
Feb 15, 2016 at 1:24pm
ratingCounters[RESPONSE_VALUES] = { 0 };
You can use the curly braces only to initialize the whole array.

To set an individual member use ratingCounters[RESPONSE_VALUES] = 0 ;
Topic archived. No new replies allowed.