On Tue, 2005-02-15 at 11:03, Steven Bethard wrote:
> Paul Rubin wrote:
> > [EMAIL PROTECTED] writes:
> >
> >>How do i handle this piece of code in python:
> >>
> >># define vZero 15
> >># define vOne 20
> >>
> >>unsigned int vTable[Zero][One]
> >>
> >>if(vGroup[vZero][vOne] == 0)
> >>{
> >>
Paul Rubin wrote:
[EMAIL PROTECTED] writes:
How do i handle this piece of code in python:
# define vZero 15
# define vOne 20
unsigned int vTable[Zero][One]
if(vGroup[vZero][vOne] == 0)
{
vGroup[vZero][vOne]--
.
.
}
Simplest might be with a dictionary:
vGroup =
[EMAIL PROTECTED] writes:
> How do i handle this piece of code in python:
>
> # define vZero 15
> # define vOne 20
>
> unsigned int vTable[Zero][One]
>
> if(vGroup[vZero][vOne] == 0)
> {
> vGroup[vZero][vOne]--
> .
> .
> }
Simplest might be with a dic
How do i handle this piece of code in python:
# define vZero 15
# define vOne 20
unsigned int vTable[Zero][One]
if(vGroup[vZero][vOne] == 0)
{
vGroup[vZero][vOne]--
.
.
}
Thanks,
-d4
--
http://mail.python.org/mailman/listinfo/python-list