Please support our C++ advertiser: Programming Forums
Views: 13070 | Replies: 13
![]() |
>Any ideas?
Yes, you could stick your head in a bucket of jello twice a day and run around the office naked screaming the national anthem at the top of your lungs.
>void draw(char[], int, int);
...An array of char isn't the same as a two dimensional array of char either. How about changing it to:
As the error suggests you should do?
Yes, you could stick your head in a bucket of jello twice a day and run around the office naked screaming the national anthem at the top of your lungs.
>void draw(char[], int, int);
...An array of char isn't the same as a two dimensional array of char either. How about changing it to:
void draw ( char (*)[3], int, int);
I'm here to prove you wrong.
>You could also change it to char **
No, you couldn't because the argument is a two dimensional array. The "arrays are converted to pointers" rule only applies to the first dimension, so a[M][N] is equivalent to (*a)[N], but not equivalent to **a.
>much like it is often defined as a command line parameter here...
No, not really. argv and what the OP is trying to do are two completely different things.
No, you couldn't because the argument is a two dimensional array. The "arrays are converted to pointers" rule only applies to the first dimension, so a[M][N] is equivalent to (*a)[N], but not equivalent to **a.
>much like it is often defined as a command line parameter here...
No, not really. argv and what the OP is trying to do are two completely different things.
I'm here to prove you wrong.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode