Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decrement operator
Message
De
02/09/2008 07:26:29
 
 
À
02/09/2008 07:18:54
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344042
Message ID:
01344043
Vues:
14
>Hi,
>Given:
>private int scaleFactor = 1;
>public int ScaleFactor
>        {
>            get { return scaleFactor; }
>            set
>            {
>                if (value == 0)
>                {
>                    scaleFactor = scaleFactor == 1 ? -1 : 1;
>                }
>                else
>                    scaleFactor = value;
>            }
>        }
Why isn't i = -1 after
int i = --ScaleFactor;

Where is i ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform