|
|
View previous topic :: View next topic |
Author |
Message |
micman Guest
|
Multidimensional Arrays |
Posted: Fri Aug 01, 2003 9:02 am |
|
|
I've a problem with multidimensional array es:
int month[12][3] = ("GEN","FEB","MAR","APR",......."DIC");
Comilation problem? Why?
and
int number[3][3]=(1,2,3
4,5,6
7,8,9);
Comilation problem? Why?
Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516553 |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
Re: Multidimensional Arrays |
Posted: Fri Aug 01, 2003 9:27 am |
|
|
Use the {} instead of ()
int number[3][3]={1,2,3
4,5,6
7,8,9};
:=I've a problem with multidimensional array es:
:=
:=int month[12][3] = ("GEN","FEB","MAR","APR",......."DIC");
:=Comilation problem? Why?
:=
:=and
:=
:=int number[3][3]=(1,2,3
:= 4,5,6
:= 7,8,9);
:=Comilation problem? Why?
:=
:=Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516554 |
|
|
micman Guest
|
Re: Multidimensional Arrays |
Posted: Fri Aug 01, 2003 9:43 am |
|
|
THANKS!!
:=Use the {} instead of ()
:=
:=int number[3][3]={1,2,3
:= 4,5,6
:= 7,8,9};
:=
:=:=I've a problem with multidimensional array es:
:=:=
:=:=int month[12][3] = ("GEN","FEB","MAR","APR",......."DIC");
:=:=Comilation problem? Why?
:=:=
:=:=and
:=:=
:=:=int number[3][3]=(1,2,3
:=:= 4,5,6
:=:= 7,8,9);
:=:=Comilation problem? Why?
:=:=
:=:=Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516555 |
|
|
R.J.Hamlett Guest
|
Re: Multidimensional Arrays |
Posted: Fri Aug 01, 2003 10:48 am |
|
|
:=Use the {} instead of ()
:=
:=int number[3][3]={1,2,3
:= 4,5,6
:= 7,8,9};
And here, remember you want three groups of three entries, not one of nine.
Hence:
int number[3][3]={
{1,2,3},
{4,5,6},
{7,8,9}
};
:=:=I've a problem with multidimensional array es:
:=:=
:=:=int month[12][3] = ("GEN","FEB","MAR","APR",......."DIC");
:=:=Comilation problem? Why?
:=:=
:=:=and
:=:=
:=:=int number[3][3]=(1,2,3
:=:= 4,5,6
:=:= 7,8,9);
:=:=Comilation problem? Why?
:=:=
:=:=Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516557 |
|
|
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|