About 8,030,000 results
Open links in new tab
  1. What does '&' do in a C++ declaration? - Stack Overflow

    I am a C guy and I'm trying to understand some C++ code. I have the following function declaration:

  2. What is the <=> ("spaceship", three-way comparison) operator in …

    Nov 24, 2017 · This is called the three-way comparison operator. According to the P0515 paper proposal: There’s a new three-way comparison operator, <=>. The expression a <=> b returns …

  3. 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 …

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

  5. c++ - How do you create a static class? - Stack Overflow

    If you're looking for a way of applying the static keyword to a class, like you can in C# for example, then you won't be able to without using Managed C++. But the looks of your sample, …

  6. c++ - What is the meaning of 'const' at the end of a member …

    When you add the const keyword to a method the this pointer will essentially become a pointer to const object, and you cannot therefore change any member data. (Unless you use mutable, …

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

  8. Visual Studio Code: How to configure includePath for better ...

    Sep 17, 2017 · From the official documentation of the C/C++ extension: Configuring includePath for better IntelliSense results If you're seeing the following message when opening a folder in …

  9. How do I fix the error "was not declared in this scope"?

    This is similar to how one would write a prototype for functions in a header file and then define the functions in a .cpp file. A function prototype is a function without a body and lets the compiler …

  10. c++ - What is the difference between public, private, and …

    Mar 19, 2015 · Limiting the visibility of inheritance will make code not able to see that some class inherits another class: Implicit conversions from the derived to the base won't work, and …