Raised This Month: $51 Target: $400
 12% 

Solved variables' prefixes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 02-17-2021 , 14:14   variables' prefixes
Reply With Quote #1

Hi! I often see variables with prefixes like "g", "i", "sz", "f" and etc. What do they mean?

Last edited by kww; 02-19-2021 at 07:50.
kww is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-17-2021 , 14:23   Re: variables' prefixes
Reply With Quote #2

It's the Hungarian notation, which is a variable naming convention. It's only for semantics - they don't affect your program.
__________________
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-17-2021 , 15:11   Re: variables' prefixes
Reply With Quote #3

Global, integer, string, float.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 02-17-2021 , 16:27   Re: variables' prefixes
Reply With Quote #4

Quote:
Originally Posted by KliPPy View Post
It's the Hungarian notation, which is a variable naming convention. It's only for semantics - they don't affect your program.
Okay thanks

Quote:
Originally Posted by OciXCrom View Post
Global, integer, string, float.
Thanks for explanation

Last edited by kww; 02-17-2021 at 16:28.
kww is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-18-2021 , 00:33   Re: variables' prefixes
Reply With Quote #5

FYI, "sz" comes from "string terminated by zero".
__________________
fysiks is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-18-2021 , 20:43   Re: variables' prefixes
Reply With Quote #6

https://en.wikipedia.org/wiki/Hungarian_notation
redivcram is offline
Reply



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 16:02.


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