Search Result

Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
static const
  •  

  • Ajax Chelsea
    Guest started a topic How is "static const int" better than "static enum"?
    in C

    How is "static const int" better than "static enum"?

    can not the "static const int" be replaced by "static enum" anywhere?

    is it necessary that define special initialization syntax for "static const int"?...
    See more | Go to post

  • Jan13
    Guest started a topic static const class members
    in C

    static const class members

    Hi,



    I'm new to programming in C++ (using VC6) and ran into the following
    problem: I want to declare and define a class member variable as 'static
    const', but something seems to go wrong with the linking.



    I specify a class Port the following way:

    Port.h:

    class __declspec(dlle xport) Port

    { static const int IN_PORT;

    //...
    ...
    See more | Go to post
Working...