About 8,230,000 results
Open links in new tab
  1. 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.

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

  3. When to use extern in C++ - Stack Overflow

    I'm reading "Think in C++" and it just introduced the extern declaration. For example: extern int x; extern float y; I think I understand the meaning (declaration without definition), but I wonde...

  4. What is the meaning of the auto keyword? - Stack Overflow

    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 trailing return type …

  5. Check if a string contains a string in C++ - Stack Overflow

    Feb 26, 2010 · I have a variable of type std::string. I want to check if it contains a certain std::string. How would I do that? Is there a function that returns true if the string is found, and …

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

  7. c++ - Undefined reference to vtable - Stack Overflow

    12 The GNU C++ compiler has to make a decision where to put the vtable in case you have the definition of the virtual functions of an object spread across multiple compilations units (e.g. …

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

  9. visual studio - C++ cannot open source file - Stack Overflow

    There is more information here on how to deal with this problem: Where does Visual Studio look for C++ header files? For me, I followed xflowXen's answer and then at "Include Directories" …

  10. Iterate through a C++ Vector using a 'for' loop - Stack Overflow

    Oct 3, 2012 · I am new to the C++ language. I have been starting to use vectors, and have noticed that in all of the code I see to iterate though a vector via indices, the first parameter of …