banner



How To Run Dev C++ In Windows 10

Getting Started with Dev-C++

Dev-C++ is a gratis integrated development environment (IDE) for C and C++, and is distributed under the GNU Full general Public License. The IDE was written primarily for Microsoft Windows, and is compatible with Windows versions 7, 8 and 10. The original developers, Bloodshed Software, ceased active involvement in the projection in 2005. The projection was taken over by Orwell (Johan Mes) in 2011, who continued to develop and maintain it until 2020, Since then, evolution has continued nether the auspices of U.S. figurer software company Embarcadero Technologies.

Well-nigh of the example programs included in these pages were compiled and tested using the version of Dev-C++ first developed by Orwell (Johan Mes) in 2011, only you should be able to utilise the existing code with newer versions of Dev-C++ to compile and run the programs successfully. The electric current version is 6.three, released in Jan 2021, which can be downloaded here.

  1. Download the Dev-C++ installation file using the link above.
  2. Double-click on the file to start the installation procedure.

    Starting the installation

  3. Select the language you wish to apply.

    Select the language you wish to use

  4. Click on I Agree to accept the license agreement.

    Accept the license agreement

  5. Click on Adjacent to install the default features.

    Install the default features

  6. Click on Install to accept the default installation location.

    Accept the default installation location

  7. The installation plan will extract the necessary files . . .

    Extracting necessary files . . .

  8. . . . and complete the setup procedure. Click on End.

    . . . and completing setup procedure.

  9. Choose your linguistic communication (English language is selected by default) and click on Next.

    Choose a language

  10. Click on Adjacent to accept the default theme.

    Accept the default theme

  11. The installation program will confirm that Dev-C++ has been configured successfully. Click on OK to proceed.

    Confirmation of successful configuration

  12. The Dev-C++ IDE volition open.

    The IDE user interface opens

If you are running the Dev-C++ IDE on a Windows figurer, when you create a new projection it volition be saved in your "my Documents" folder. You may well wish to create a dedicated binder to concur your C projects. To exercise this, go on as follows:

  1. Select Surround Options from the Tools menu.

    Select Tools, Environment Options

  2. Select the Directories tab and browse to the directory in which you wish to store your projects (note: if the directory does non be you lot will demand to create it earlier you lot tin can select it - we created the Dev-C++ Projects directory as a subdirectory of the Documents binder).

    Select the Directories tab and browse to your chosen folder

To check that everything is working, nosotros'll create a projection called MyFirstProject and write a simple "How-do-you-do Globe!" type program. Earlier nosotros exercise, however, we need to create a subdirectory of our Dev-C++ Projects directory called MyFirstProject to hold our project files.

  1. Select New Projection from the File menu.

    Select File, New, Project

  2. In the New Project dialog box, select the Console Application icon, so select the C Project radio button. Blazon "MyFirstProject" in the Name box, and click on OK.

    Create a new C project called MyFirstProject as a console application

  3. The project file must be saved earlier you can proceed (the project file name will be MyFirstProject.dev by default). In the Salve Equally dialog box, change directory to the project subdirectory MyFirstProject, which y'all should have already created for this project (if yous accept not already created this subdirectory, you can do so on the fly past right clicking on a blank area of the Save As dialog box and selecting New Folder).

    Create a new C project called MyFirstProject as a console application

  4. Yous should now see something like the following screenshot.

    The project will now contain some default code

  5. Delete the default program lawmaking, then copy and paste the following code into the lawmaking editor window:

    // A first C Program.
    #include <stdio.h>

    void chief()
    {
    char str[i];
    printf("Greetings, Maestro!");
    printf("\n\nPress ENTER to go on...");
    gets(str);
    }

  6. Select Run from the Execute menu (or press the F10 key)

    Select Execute, Run

  7. Y'all volition be asked if you want to compile the program. Click on Yes to compile and run the programme.

    Select 'Yes' to compile and run the program

  8. 1. You volition now be asked to relieve the C source file. Make certain the "Dev-CC+ Projects> MyFirstProject" folder is selected, change the default file name (probably "main.c") to "MyFirstProject.c" and click Save.

    Save the source file

  9. Yous should see the following output appear in a DOS command window.

    The output from 'MyFirstProject.exe'

If you run the programme from within the Dev-C++ IDE, pressing the ENTER key once will cause a condition message to be displayed in the DOS control window. Any further keypress will close the DOS control window. If you lot run the executable outside of the IDE (for example, by double clicking on the executable file in the project binder using Windows Explorer), the program will terminate immediately when the ENTER key is pressed.

If you run the program from within the IDE, pressing ENTER once generates a status message.

If you lot run the plan from inside the IDE, pressing ENTER in one case generates a status message.


Nigh of the sample programs in these pages will require a unmarried source file. From this point frontwards nosotros exit information technology upwards to the reader to cull how they name and organise their projects, merely nosotros would recommend creating a new projection folder for each new programme every bit a matter of good housekeeping.


Source: https://www.technologyuk.net/computing/software-development/computer-programming/c-programming/getting-started-with-dev-c++.shtml

Posted by: thompsonhersentooped45.blogspot.com

0 Response to "How To Run Dev C++ In Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel