Search:

Type: Posts; User: frankish

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,294

    If your system is POSIX compliant then you can...

    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\"");
  2. Replies
    4
    Views
    1,431

    All functions share the same code segment and...

    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...
  3. Don't complicate things just pass modid as a...

    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...
  4. Replies
    16
    Views
    13,081

    switch/case blows. It only works with literals...

    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.
Results 1 to 4 of 7