About 3,830,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. c++ - How can I iterate over an enum? - Stack Overflow

    Nov 4, 2008 · I just noticed that you can not use standard math operators on an enum such as ++ or +=. So what is the best way to iterate through all of the values in a C++ enum?

  3. How to convert an enum type variable to a string? [duplicate]

    Feb 24, 2011 · How to make printf to show the values of variables which are of an enum type? For instance: typedef enum {Linux, Apple, Windows} OS_type; OS_type myOS = Linux; and what I …

  4. c++ - What does the explicit keyword mean? - Stack Overflow

    Sep 23, 2008 · I just want to point out to anyone new coming along that ever since C++11, explicit can be applied to more than just constructors. It's now valid when applied to conversion …

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

  6. What does the |= operator mean in C++? - Stack Overflow

    Jan 18, 2012 · What does the |= operator mean in C++?Assuming you are using built-in operators on integers, or sanely overloaded operators for user-defined classes, these are the same: a = …

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

    Nov 24, 2017 · The <=> token is introduced. The character sequence <=> tokenizes to <= >, in old source code. For example, X<&Y::operator<=> needs to add a space to retain its meaning. …

  8. fatal error: Python.h: No such file or directory - Stack Overflow

    Feb 3, 2014 · I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below: gcc -Wall utilsmodule.c -o Utilc After …

  9. colors - Colorizing text in the console with C++ - Stack Overflow

    Oct 29, 2010 · How can I write colored text to the console with C++? That is, how can I write different text with different colors?

  10. How do I use extern to share variables between source files?

    Using extern is only of relevance when the program you're building consists of multiple source files linked together, where some of the variables defined, for example, in source file file1.c …