If your system is POSIX compliant then you can use mkdir() if it isn't just take the shortcut like I do:
#include <cstdlib>
std::system("mkdir \"some folder\"");
Type: Posts; User: frankish
If your system is POSIX compliant then you can use mkdir() if it isn't just take the shortcut like I do:
#include <cstdlib>
std::system("mkdir \"some folder\"");
All functions share the same code segment and implementation. So the answer to your question is that you do not save memory by making functions static although you do save memory by making variables...
Don't complicate things just pass modid as a parameter to the function t_print(). Using global variables can be quite an inconvenience. Your best bet may be to go object oriented and store the...
switch/case blows. It only works with literals and macros. It won't work with strings or constants for that matter. Stick to if-else.