Results 1 to 4 of 4
  1. #1
    Caezer99's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    575
    Reputation
    10
    Thanks
    1,235

    Proper Naming Conventions


    Many of you here don't really actually learn C++, most of you just copy paste. Your source code is messy.

    I am here to help.

    As you know, the primary language most of us use here is C++.

    In most programming languages, there are data types.

    What are data types?
    Fundamental data types are basic types implemented directly by the language that represent the basic storage units supported natively by most systems.

    Complete list of fundamental types in C++


    So how do you name and declare variables?
    Code:
    DWORD dwSomething = NULL;
    BYTE bySomething = NULL;
    int iSomething = NULL;
    float fSomething = NULL;
    bool bSomething = NULL;
    char szSomething[100] = NULL;
    void MyFunction()
    {
    //void stands for nothing. Therefore you do not return any value, hence for your function name you do not have a data type indicator.
    }
    NOTE: Some developers & programmers use bSomething for both BYTE and bool.

    Why does this help?
    It allows us as developers & programmers to easily identify the data type easily just by glancing at the variable name.

    Disclaimer: The image is not created by me.
    Last edited by Caezer99; 06-16-2016 at 11:43 AM.


    Mess with the best, die like the rest.


  2. The Following 7 Users Say Thank You to Caezer99 For This Useful Post:

    Calixx (06-16-2016),failnoobgamer (06-16-2016),lauquan098 (06-16-2016),[MPGH]Luffy (06-16-2016),nikazizi97 (06-16-2016),rushil69 (06-16-2016),ZhinLoung (06-17-2016)

  3. #2

  4. The Following User Says Thank You to failnoobgamer For This Useful Post:

    nikazizi97 (06-16-2016)

  5. #3
    MafiaBoy BlackShit's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Location
    Secret
    Posts
    467
    Reputation
    10
    Thanks
    1,229
    My Mood
    Amazed
    Nice Tutorial Ever Haha
    We're Anonymous
    We're Hacker, We're Not Going To Stop!
    Bcaus We're Hacker!

    AOA Music

  6. #4
    ZhinLoung's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Posts
    181
    Reputation
    10
    Thanks
    14
    Nice tutorial for someone that understand basic c++

Similar Threads

  1. So what's the naming convention used here?
    By Klypto in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 1
    Last Post: 06-20-2012, 01:33 AM
  2. The proper name change request...
    By Lucianberg in forum Profile Edit Requests
    Replies: 10
    Last Post: 06-24-2011, 05:25 PM
  3. Leet Names :)
    By EleMentX in forum Spammers Corner
    Replies: 18
    Last Post: 09-20-2010, 11:34 PM
  4. No-name game
    By SadisticGrin in forum Spammers Corner
    Replies: 12
    Last Post: 01-28-2010, 11:58 AM
  5. Post your game name here
    By styx23 in forum WarRock - International Hacks
    Replies: 49
    Last Post: 07-17-2007, 09:47 PM