About 9,650,000 results
Open links in new tab
  1. What is the meaning of prepended double colon - Stack Overflow

    I found this line of a code in a class which I have to modify: ::Configuration * tmpCo = m_configurationDB;//pointer to current db and I don't know what exactly means the double …

  2. What does the "::" mean in C++? - Stack Overflow

    @PaulR Not everyone who arrives upon this question is looking to learn C++. I, for example, just happened to be skimming some C++ code and wanted to get the general idea of what the …

  3. Regular cast vs. static_cast vs. dynamic_cast - Stack Overflow

    Aug 26, 2008 · I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e. …

  4. What is the C++ function to raise a number to a power?

    In C++ the "^" operator is a bitwise XOR. It does not work for raising to a power. The x << n is a left shift of the binary number which is the same as multiplying x by 2 n number of times and …

  5. How to use the PI constant in C++ - Stack Overflow

    Nov 13, 2009 · I want to use the PI constant and trigonometric functions in some C++ program. I get the trigonometric functions with include &lt;math.h&gt;. However, there doesn't seem to be …

  6. How to generate a random number in C++? - Stack Overflow

    Nov 19, 2012 · I'm trying to make a game with dice, and I need to have random numbers in it (to simulate the sides of the die. I know how to make it between 1 and 6). Using #include …

  7. c++ - How can I trim a std::string? - Stack Overflow

    } // The remaining functions (trim() et al.) are identical to the new C++11 version std::ptr_fun is needed to disambiguate std::isspace because there is a second definition which supports …

  8. What is std::move(), and when should it be used? - Stack Overflow

    Aug 5, 2010 · What is it? What does it do? When should it be used? Good links are appreciated.

  9. How do you add a timed delay to a C++ program? - Stack Overflow

    Sep 12, 2014 · I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at? I wish I had more details on …

  10. What is the meaning of the auto keyword? - Stack Overflow

    32 For variables, specifies that the type of the variable that is being declared will be automatically deduced from its initializer. For functions, specifies that the return type is a trailing return type …