About 50 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. How does the % operator (modulo, remainder) work?

    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 …

  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. c++ - Difference between | and || , or & and && - Stack Overflow

    Dec 28, 2015 · Closed 10 years ago. These are two simple samples in C++ written on Dev-cpp C++ 5.4.2:

  5. Incrementing in C++ - When to use x++ or ++x? - Stack Overflow

    This may seem like pedantry (mainly because it is :) ) but in C++, x++ is a rvalue with the value of x before increment, x++ is an lvalue with the value of x after an increment. Neither expression …

  6. .c vs .cc vs. .cpp vs .hpp vs .h vs .cxx - Stack Overflow

    Possible Duplicates: *.h or *.hpp for your class definitions What is the difference between .cc and .cpp file suffix? I used to think that it used to be that: .h files are header files for C and C...

  7. how does the ampersand(&) sign work in c++? - Stack Overflow

    Possible Duplicate: What are the differences between pointer variable and reference variable in C++? This is confusing me: class CDummy { public: int isitme (CDummy& param); }; int …

  8. c++ - Narrowing Conversion meaning in cpp - Stack Overflow

    Mar 19, 2023 · Narrowing Conversion meaning in cpp Asked 2 years, 9 months ago Modified 2 years, 9 months ago Viewed 5k times

  9. c++ - IF statement with logical OR - Stack Overflow

    Yeah, I've made the same mistake. Read the sentence again: If 1 is equal to 2 or 4, then print true. The "2" and "4" both refer to the "If 1 is equal to [...]." That means, the sentence is just an …

  10. c++ - What is an undefined reference/unresolved external symbol …

    What are undefined reference/unresolved external symbol errors? What are common causes, and how do I fix and prevent these errors?