About 8,260,000 results
Open links in new tab
  1. c++ - What does the explicit keyword mean? - Stack Overflow

    33 Cpp Reference is always helpful!!! Details about explicit specifier can be found here. You may need to look at implicit conversions and copy-initialization too. Quick look The explicit specifier specifies …

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

    Mar 17, 2011 · What does this symbol mean? AirlineTicket::AirlineTicket ()@PaulR Not everyone who arrives upon this question is looking to learn C++. I, for example, just happened to be skimming …

  3. 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 <math.h>. However, there doesn't seem to be a definition for …

  4. What is the purpose of using #ifdef and #if in C++?

    In my project code, I found that someone used #ifdef and #if in code. I would like to know what does purpose for using them? As my knowledge, it said to the preprocessor will not do anything inside...

  5. 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 that can only be …

  6. c++ - Inheriting constructors - Stack Overflow

    If your compiler supports C++11 standard, there is a constructor inheritance using using (pun intended). For more see Wikipedia C++11 article. You write:

  7. c++ - How can I iterate over an enum? - Stack Overflow

    Nov 4, 2008 · I just noticed that you can not use standard math operators on an enum such as ++ or +=. So what is the best way to iterate through all of the values in a C++ enum?

  8. What's the difference between constexpr and const?

    What's the difference between constexpr and const? When can I use only one of them? When can I use both and how should I choose one?

  9. 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.

  10. Callback functions in C++ - Stack Overflow

    Note: Most of the answers cover function pointers which is one possibility to achieve "callback" logic in C++, but as of today not the most favourable one I think. What are callbacks (?) and why to use them …