Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables (Diving into C++)
Message
De
06/03/2009 09:47:37
 
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01386073
Message ID:
01386151
Vues:
34
>>What is the limit to the number of variables that may be used in C++ ?
>>Is there a limit at all?
>
>If you're talking local variables then you're limited by the stack size. Variables in general, not really. However, if you're asking about the # of variables you're probably asking the wrong question ;-) In almost every case you're going to be better off using arrays of types and indexing into them instead of individual variables. Then you're mostly limited by memory.

Thank you, young fellow. Then I'll stick with VFP and use arrays.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform