Raised This Month: $ Target: $400
 0% 

Menu problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-31-2006 , 07:34   Re: Menu problem
Reply With Quote #7

Indeed. The only time I use hungarian notation are on the following situations:
  • Global variables
  • If two variables are of different data types but can have the same name (see example).

Example:
Code:
// Let's say we are parsing some vectors from a file: new Float:vec[3]; new szVec[3][5]; // We use as the buffer. parse(text, szVec[0], 4, szVec[1], 4, szVec[2], 4); new i; for (i = 0; i < 3; i++)      vec[i] = str_to_float(szVec[i]);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode