About 4,280,000 results
Open links in new tab
  1. 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 …

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

    The & operator does the same thing in C and C++: it takes the address of an object. The & in a function prototype is not an operator. I'll fix the title.

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

    Dec 28, 2015 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  4. How does the % operator (modulo, remainder) work?

    Oct 2, 2024 · in C++ expression a % b returns remainder of division of a by b (if they are positive. For negative numbers sign of result is implementation defined). For example: 5 % 2 = 1 13 % …

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

    foo->bar() is the same as (*foo).bar(). The parenthesizes above are necessary because of the binding strength of the * and . operators. *foo.bar() wouldn't work because Dot (.) operator is …

  6. How do you add a timed delay to a C++ program? - Stack Overflow

    Sep 12, 2014 · I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at? I wish I had more details on …

  7. Proper way to initialize C++ structs - Stack Overflow

    Jan 21, 2017 · Our code involves a POD (Plain Old Datastructure) struct (it is a basic c++ struct that has other structs and POD variables in it that needs to get initialized in the beginning.) …

  8. c++ - What is the meaning of the auto keyword? - Stack Overflow

    Sep 12, 2023 · For variables, specifies that the type of the variable that is being declared will be automatically deduced from its initializer. For functions, specifies that the return type is a …

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

  10. c++ - How do I find the length of an array? - Stack Overflow

    Is there a way to find how many values an array has? Detecting whether or not I've reached the end of an array would also work.