Talk:Variables: Difference between revisions
Content added Content deleted
(→Constants: new section) |
|||
Line 11: | Line 11: | ||
Show how to declare a constant (i.e. a variable that can't be changed after being declared). |
Show how to declare a constant (i.e. a variable that can't be changed after being declared). |
||
(I'm thinking of constants as opposed to literals, like <code>const int x = 1</code> or even <code>#define x 1</code> rather than just <code>1</code>.) Y'know, the things that you use instead of magic numbers. -- [[User:Eriksiers|Eriksiers]] 17:41, 20 October 2009 (UTC) |
(I'm thinking of constants as opposed to literals, like <code>const int x = 1</code> or even <code>#define x 1</code> rather than just <code>1</code>.) Y'know, the things that you use instead of magic numbers. -- [[User:Eriksiers|Eriksiers]] 17:41, 20 October 2009 (UTC) |
||
(This, of course, assumes that there isn't already a constants page on here somewhere.) -- [[User:Eriksiers|Eriksiers]] 18:34, 20 October 2009 (UTC) |