Open the command prompt and type g++ 'yourprogram.c'
and it should compile and leave you with an executable called a.exe or something like that. Run the executable by typing ./a.exe
.
More Related Contents:
- What is the difference between palindrome permutation and permutation? [closed]
- Why is “using namespace std;” considered bad practice?
- Is there a max array length limit in C++?
- Comma in C/C++ macro
- How to convert a lambda to an std::function using templates
- C++ standard: dereferencing NULL pointer to get a reference? [duplicate]
- High resolution timer with C++ and Linux?
- C++11 aggregate initialization for classes with non-static member initializers
- 32-bit to 16-bit Floating Point Conversion
- Should one use forward declarations instead of includes wherever possible?
- tell cin to stop reading at newline
- Uses of a C++ Arithmetic Promotion Header
- Create an Application without a Window
- Why are arguments which do not match the conversion specifier in printf undefined behavior?
- Assign a nullptr to a std::string is safe?
- Comparing strings lexicographically
- Unresolved external symbol LNK2019
- Why can a T* be passed in register, but a unique_ptr cannot?
- What are the main purposes of std::forward and which problems does it solve?
- How to enable C++17 support in VSCode C++ Extension
- MATLAB vs C++ vs OpenCV – imresize
- Vector.erase(Iterator) causes bad memory access
- Override and overload in C++
- Why and how should I use namespaces in C++?
- Loading a file into a vector
- Why default three-way operator (spaceship ) generates equality operator (==) and user define three-way operator not?
- ifstream not reading EOF character
- Why is arr and &arr the same?
- Visual Studio 2013: CL.exe exited with code -1073741515
- How can I extend a lexical cast to support enumerated types?