Ocean of Programming: Code::Blocks
Showing posts with label Code::Blocks. Show all posts
Showing posts with label Code::Blocks. Show all posts

Wednesday, 17 May 2017

How To Create and Run Project In Code::Blocks

May 17, 2017 0
How To Create and Run Project In Code::Blocks
        In the previous post, we have seen how to download and install Code::Blocks for C programming. If you did not read that article then read How to Download and Install Code::Blocks before proceeding further.
       The code block is a popular application for C Programming. It is open-source, cross-platform, free C, C++ and Fortran IDE. Using Code::Blocks we can write C code, compile and run it. It popular application and free to use. 
       In this post, I am going to explain how to run and compile C program code in Code::Blocks. Lets us follow the procedure. The procedure is same for every project. 
        In the first step you have to double-click on the Code::Blocks icon which on the desktop. After that, you will see window like this and you have to click on Create New Project.
         After selecting Create New Project the new window will pop up named New From Template and you have click on Console Application click on Go.
       After selecting clicking on Go yo will pop up a new window named Console Application and you have to select C or C++ project. We are creating C project so select C and click on Next.
         After that, you have to enter the project name and path for saving the program. I have given the name sample and selected path as a desktop. You give your program name and required the path for saving the program. Path selection is a must for the first time it cannot select path automatically. After that click on Next.
After that, you will pop up a new window of the compiler. You can change another compiler but keep GNU GCC Compiler or if another option is selected then change and select GNU GCC Compiler and click on finish. You will see new project window.
          After that double click on Sources and new sub-menu main.c will open and double-click on that menu.c file and you will see a new file with some pre-written code.
           For compile the code select build option from Build menu or press Ctrl+F9.
        After completing compilation click on run from Build menu or press Ctrl+F10. A new black window pops up with output.
           In the above image, the output of the program is shown. 
           Note: If  installing Code::Blocks second time then it might give error if program is correct in this situation you may first delete registry files of Code::Blocks and uninstall and again install Code::Blocks it will start working but be careful if by mistake you deleted the other files it may damage your computer. Try deleting registry files only if you know all the things. I have tried this and its worked on my computer. For any damage to your computer by deleting registry file I am not responsible for that try at your own risk.
        Please feel free to comment if you find anything incorrect or you want to share more information about the topic discussed above.

Tuesday, 9 May 2017

How to Download and Install Code::Blocks

May 09, 2017 0
How to Download and Install Code::Blocks
Ocean of Programming
        The code block is a popular application for C Programming. It is open source, cross-platform, free C, C++ and Fortran IDE. Using Code::Blocks we can write C code, compile and run it. It popular application and free to use. In this article, I am going to explain how to download and install it. Most people download and install the incorrect file and they face difficulties in compiling and running the C program. It is very simple to download install and configure the Code::Blocks. The current version of Code::Blocks is 16.01 which is released on Thursday, 28 January 2016 10:21which has many improvements, new plugins and features, more stable and major code completion enhancement. The Code::Blocks is available for
  • Windows XP / Vista / 7 / 8.x / 10
  • Linux 32-bit
  • Linux 64-bit
  • Mac OS X
         We need to download according to our operating system. I am downloading and installing Code::Blocks on Windows 10Let's see one by one with the help of images.
         First, go to http://www.codeblocks.org/ the front page of Code::Blocks will be displayed and go to download section.

         After clicking download the download page will be open and click on Download the binary release.
After clicking you need to select your operating system.
After selecting you to need to select need to download a proper file which is codeblocks-16.01mingw-setup.exe. Download this file only not other files. To download files click on Sourceforge.net or FossHub. You can directly download the file from here. After downloading the file click on the downloaded setup file. You will see the window like
Click on Next. After you will see
Click on I Agree 
Again click on Next
In above figure Code::Blocks is asking for saving the supported files. You can choose your own path or keep it as the default path. After selecting the installation path click on install and installation will start.
After completing installation it will give the message 
             Click finish and this is done the complete installation of code blocks. Now see How To Create and Run Project in Code::Blocks
          Please feel free to comment if you find anything incorrect or you want to share more information about the topic discussed above.