What\'s the reason for putting void inside of the params?
Why not just leave it blank?
void createLevel(void);
void createLevel();
void
in function argument lists is a relict of the past (C). In C++, you should leave the parentheses empty. Of course you can keep the void
if it makes you happy.
In C, if you declare a function with empty parentheses, the meaning is that the number of parameters is unknown. void
can be used to make it explicit that no parameters are expected.