About 11,400,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. C++ code file extension? What is the difference between .cc and …

    95 .cpp is the recommended extension for C++ as far as I know. Some people even recommend using .hpp for C++ headers, just to differentiate from C. Although the compiler doesn't care …

  3. c++ - What does the explicit keyword mean? - Stack Overflow

    Sep 23, 2008 · I just want to point out to anyone new coming along that ever since C++11, explicit can be applied to more than just constructors. It's now valid when applied to conversion …

  4. How to iterate through a list of objects in C++? - Stack Overflow

    Mar 8, 2014 · Learn how to iterate through a list of objects in C++ using various methods and techniques.

  5. What are forward declarations in C++? - Stack Overflow

    We used a forward declaration so that the compiler would know what " add " was when compiling main.cpp. As previously mentioned, writing forward declarations for every function you want to …

  6. *.h or *.hpp for your C++ headers / class definitions

    For other headers in .h, either there is a corresponding .cpp file as implementation, or it is a non-C++ header. The latter is trivial to differentiate through the contents of the header by humans …

  7. What does the C++ standard say about the size of int, long?

    I'm looking for detailed information regarding the size of basic C++ types. I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler. But are there any standards for ...

  8. Run C++ in command prompt - Windows - Stack Overflow

    It depends on what compiler you're using. For example, if you are using Visual C++ .NET 2010 Express, run Visual C++ 2010 Express Command Prompt from the start menu, and you can …

  9. How to find if a given key exists in a std::map - Stack Overflow

    Jan 9, 2024 · To those who are looking for speed: count and find are nearly identical in speed when using maps that require unique keys. (1) If you don't need the elements to maintain a …

  10. c++ - Compiling .cpp files with 'g++' - Stack Overflow

    Jul 25, 2021 · Compiling .cpp files with 'g++' Asked 4 years, 3 months ago Modified 2 years, 5 months ago Viewed 17k times