About 51 results
Open links in new tab
  1. What does the "->" operator mean in C++? - Stack Overflow

    Feb 12, 2012 · Could someone explain to me what the "->" means in C++? Examples if you can, they help me understand better. Thanks.

  2. What are the pointer-to-member operators ->* and .* in C++?

    Apr 22, 2022 · The use of both operators can be replaced since C++17 by the std::invoke function template. std::invoke provides a unified way of dereferencing member pointers regardless of whether …

  3. c++ - What is the difference between the dot (.) operator and ...

    In c++ however you gotta be a little more careful with remembering what is and what isn't a pointer, and it might be a good idea to label them with the prefix "p_" or simply "p".

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

  5. What does the question mark character ('?') mean in C++?

    What does the question mark character ('?') mean in C++? Asked 16 years, 9 months ago Modified 4 years ago Viewed 355k times

  6. c++ - How does the % operator (modulo, remainder) work? - Stack …

    Let's say that I need to format the output of an array to display a fixed number of elements per line. How do I go about doing that using modulo operation? Using C++, the code below works for displ...

  7. What does '&' do in a C++ declaration? - Stack Overflow

    So generally, if you want to use an output parameter (or a pointer/reference in general) in a C++ function, and passing a null value to that parameter should be allowed, then use a pointer (or smart …

  8. Using :: (scope resolution operator) in C++ - Stack Overflow

    A fine question, but a little too broad (IMO). That's called the scope-resolution operator, and your search term for further learning is scope. All those names (cout, member functions of A) are defined in …

  9. c++ - Difference between | and || , or & and && - Stack Overflow

    Dec 28, 2015 · I find it weird C++ doesn't allow bitwise operations on floats, although one can say they don't make much sense, these are still bit sequences, and one can do arithmetic on them.

  10. stl - C++ Double Address Operator? (&&) - Stack Overflow

    362 && is new in C++11. int&& a means "a" is an r-value reference. && is normally only used to declare a parameter of a function. And it only takes a r-value expression. If you don't know what an r-value is, …