Use of Macro Definitions to Simplify MD Code
C supports the use of macro definitions that can simplify the code considerably.
#define Sqr(x) ((x)*(x)) #define Cube(x) ((x)*(x)*(x)) #define VSub(v1, v2, v3) (v1).x = (v2).x - (v3).x, (v1).y = (v2).y - (v3).y
The above definition will shorten the codes.
Win 32 API使ってみた。
一番簡単なやつを使ってみた。
#include "windows.h" void main(){ MessageBox(NULL,"Hello!","My First WinAPI",MB_YESNO); }
Wait Until Next ms Multiple vs Wait (ms)
"Wait Until Next ms Multiple"と"Wait (ms)"の違いについての説明は以下。
日本語版
"Wait (ms)"と "Wait Until Next ms Multiple"の違いはなんですか? - National Instruments
英語版