Skip to content

Instantly share code, notes, and snippets.

@nm17
Last active January 7, 2017 20:55
Show Gist options
  • Save nm17/91061570df5e28be299a360b7f105d2f to your computer and use it in GitHub Desktop.
Save nm17/91061570df5e28be299a360b7f105d2f to your computer and use it in GitHub Desktop.
Пример typedef
typedef signed int position; // Говорим что pos это signed int
int main() {
position f; // Переменная f и g
signed int g; // одинаковы по типу
return 0;
}
@nm17
Copy link
Author

nm17 commented Jan 7, 2017

Пример красивого оформления:

/*/ ===================================== /*/
    typedef unsigned int positionOnScreen  ;
    typedef signed int position            ;
    typedef int ColorRGB                   ;
/*/ ===================================== /*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment