PS: This was published on my Blog here.

C++ is a statically-typed, free-form, (usually) compiled, multi-paradigm, intermediate-level general-purpose middle-level programming language.

In simple terms, C++ is a sophisticated, efficient, general-purpose programming language based on C.

It was developed by Bjarne Stroustrup in 1979.

Running Dev-C blreichenau For programming assignments that include one file (e.g. Prog1.cpp): Start Dev-C. Double click the shortcut on the desktop or; from the Start button: Open a new source file. (You could use the Compile command followed by the Run command. Dec 11, 2013  made with ezvid, free download at To compile a c program by dev c. Mar 07, 2017  Use any C Compiler with Visual Studio. Microsoft Visual Studio 2017 supports several C compilers to suit a wide variety of codebases. In addition to the Microsoft Visual C compiler that many of you are likely familiar with, Visual Studio 2017 also supports Clang, GCC, and other compilers when targeting certain platforms. Click the 'View' at the top of the window.; Then Click on the 'Floating Report Window'.A floating window will appear at the botton of the screen. Then Resize that floating Window. At last click on the inner tabbed close button. Sep 25, 2015  Learn how to program in C with Dev-C IDE. Download here: Dev-C is an full-featured Integrated Development Environment.

Compiler

One of C++'s main features is the compiler. This is used to compile and run C++ code.

A compiler is a special program that processes statements written in a particular programming language like C++ and turns them into machine language or 'code' that a computer's processor uses.

I actually wrote this article because I had a C++ assignment which required using a compiler. As usual, everyone was using the CodeBlocks IDE and Visual Studio IDE. But I was already used to Visual Studio Code for all my programming stuff.

I then set out to find a way of compiling C++ directly inside my own VsCode Editor, hence this article :).

In this article, I'll show you how to set up your compiler in VsCode and give you some links to some of the best C++ resources.

  • Prior knowledge of C++
    (I assume you're learning C++, about to start learning, or just reading this for fun. This article is not a C++ 101 tutorial – some understanding of C++ is needed.)
  • Visual Studio Code Editor
    Download here and read the setup docs for Windows, Linux and Mac
  • Internet connection (!important)

Disclaimer!

I will be using a Windows OS throughout this article, but I'll provide links to resources that will help those using other operating systems.

Now let's get started!

  • Head to www.mingw.org and click the “Download/Installer” link to download the MinGW setup file, or click here for Windows, here for Linux, and here for Mac
MinGW, a contraction of 'Minimalist GNU for Windows', is a minimalist development environment for native Microsoft Windows applications.
  • After downloading, install MinGW and wait for the “MinGW Installation Manager” to show up.
  • When the “MinGW Installation Manager” shows up, click on mingw32-gcc-g++ then select “Mark for Installation”
  • In the menu at the top left corner, click on “Installation > Apply Changes”
  • Wait and allow to install completely. Ensure you have a stable internet connection during this process.

PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located. In general, each executing process or user session has its own PATH setting. - Wikipedia

After installing MinGW, it can be found in C:MinGWbin. Now you have to include this directory in your environment variable PATH. If you've been using computers for a while now you should know how to do this already, but if you don't, here are a few resources:

  • Click here for a Windows OS guide
  • Click here for Linux
  • Click here for a Mac OS guide

Now we have our compiler set up, let's install Code Runner

Code Runner allows you to Run code snippet or code file for multiple languages:

C, C++, Java, JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, F# (.NET Core), C# Script, C# (.NET Core), VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure, Haxe, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Free Pascal, Haskell, Nim, D, Lisp, Kit, and custom command.
  • Click here to download
  • Or search in VsCode marketplace tab
  • After installing restart VsCode
  • Open your C++ file in Vscode. Here's a basic hello world program below:

Save this file as test.cpp

  • Use the shortcut Ctrl+Alt+N
  • Or press F1 and then select/type Run Code
  • Or right-click the Text Editor and then click Run Code in the editor context menu

The code will run and the output will be shown in the Output Window. Open the output window with `Ctrl+ shortcut.

  • Use the shortcut Ctrl+Alt+M
  • Or press F1 and then select/type Stop Code Run
  • Or right-click the Output Channel and then click Stop Code Run in the context menu

Hurray, you just successfully set up your C++ environment in VsCode!

Here's a quick hint: By default, VsCode's output terminal is read-only. If you're running code that requires user input like:

you won't be able to type into the terminal, Cannot edit in read-only terminal.
To fix this, you need to manually enable read-write.

  • In VsCode, Go to File > Preference > Setting.
  • In the User tab on the left panel, find the extensions section
  • Scroll and find 'Run Code Configuration'
  • Scroll and find a checkbox Run in Terminal (Whether to run code in Integrated Terminal) Check the box.

OR

  • In your setting.json file, add:

Hurray, you're done and ready to roll :).

Here are some C++ resources you can use to get started with learning C++

  • Code Runner by Jun Han

Thank you for reading!

hello altogether,
my name is Wolfram Pagels, Berlin, Germany
my status is :retired but enthusiastic c++-fan;

I use Dev-C++ since 3 month ago; in the 70th I programmed in Fortran;
after a long break I enjoy to learn c++11;

Due to popular demand, they have made the Auto-Tune 5 sound available in Auto-Tune Pro via the new Classic Mode. Auto-Key: Automatic Key And Scale DetectionAuto-Key is a brand new plug-in, included with your Auto-Tune Pro purchase, which automatically detects the key and scale of your music and sends that information to one or more instances of Auto-Tune Pro. Classic ModeClassic Mode is the much-requested return of the celebrated “Auto-Tune 5 sound.”As they have added new features to Auto-Tune (such as Formant Correction, Throat Modeling, and Flex-Tune) the Auto-Tune algorithm has also evolved, and it's undergone subtle changes, with each Auto-Tune version having its own slightly different character.Over the years, the sound of Auto-Tune 5 has developed something of a cult following among musicians, audio engineers and producers, perhaps due in part to its use on many iconic pop recordings. In addition to a much larger Main Graph, the new Graph Mode features greater zoom resolution, user assignable zoom presets, and controls reconfigured to optimize workflow efficiency. Cheap auto tune for pro tools 8.

e.g.: the day before yesterday I got the following message from Dev-C++:

My second question to you: * h o w to enable (these) options at my installed and running actual mingw compiler as part of Dev-C++ IDE ?

Thank you in advance for your time,

yours sincerely

Edited by mike_2000_17: Removed email address. Fixed formatting.
  • 4 Contributors
  • forum 3 Replies
  • 3,679 Views
  • 23 Hours Discussion Span
  • commentLatest Postby Ancient DragonLatest Post

mike_2000_172,669

How To Update Dev C++ Compiler

Well, the answer to your problem (but not to your question) is to change your IDE. Dev-C++ is far too old to support C++11. The MinGW GCC version that ships with Dev-C++ is version 3.4.2, which is really old. Decent support for C++11 starts roughly from 4.6.0, but since it is still experimental, the newer the better. Currently, you can get 4.7.1 version through '>TDM-GCC ports. I recommend switching to '>CodeBlocks, which you can download as an installer that includes TDM-GCC 4.7.1. That should allow you to have decent C++11 support.

Free Compiler For C Programming

As for setting compiler options, you typically have to navigate the 'Build Configuration' or 'Project Properties' or similar panels. Usually, you will find a place to put 'custom compiler options' where you can place the exact command-line compiler option (like -std=c++11), that is, if you can't find a checkbox for the particular option you need.