Subscribe For Free Updates
PaidVerts
Showing posts with label c. Show all posts
Showing posts with label c. Show all posts

Sunday, May 24, 2015

How to create console application with Code::Blocks

After installing code:blocks and launching it you will obtain the corresponding display:


The area (1) allows to do the following tasks:
  • search a word in the opened file
  • copy, paste, cut
  • save the current file or all the files in the project
The area (2) displays the opened projects
The area (3) contains the opened file or a list of projects that you have recently opened

Remarks:
The code::blocks project is a folder that contains many source files and only one .cbp file.
The .cbp file contains metadata used by code::blocks to open the project.

The area (4) displays build messages in the build log tab, search results and debugging stuff.

The button build: compiles source files (.c) into a .o files
The button execute: executes the currently present executable, so if you have a problem with the precedent executable and when using this button the problem persists.

The button build and run: deletes the current executable and generates a new one.I advice you to always use this button to be sure that your modifications are taken into account.

In order to create a console application, you click on File -> New -> console Application

Then you select the C language:

Select the folder where you will save your project:
The folder which contains the project is: C:\Users\Mateo\Projects\


Click on Finish and you are done.


How to download the right version of Code::Blocks

To download Code::Blocks you should visit this link.

Once you go to this website, you should choose the right version for your plateform.

Here we present the direct links to the executables for the principal Operating systems.

For Windows plateform :

You should pay attention to download the  Code::Blocks version which contains the GCC compiler whose name is MINGW.

Choose the version called:  codeblocks-13.12mingw-setup.exe

The  direct link for this version is the here.

This version works well for the 32 bits and the 64 bits windows plateforms as well.

For Debian plateform : Example: Ubuntu linux distribution belongs to Debian plateform.
The executable files in Debian distributions has the .deb extension.
You should choose the stable version which is located in this address:

There is no version for debian plateform whose architecture is 64 bits.


For Mac OS X plateform :

The direct link to the Mac OS X version is this.

NOTES:
  • Code::Blocks for Mac is currently not as stable as are other ports, especially on Mountain Lion. In other words, we could use an extra Mac developer (or two) to work on Mac compatibility issues.
  • We offer a Mac version, explained hereby:
    • CodeBlocks-13.12-mac.zip: default release, in ZIP format
  • The provided download contains an Application Bundle (for the i386 architecture) built for Mac OS X 10.6 (and later), bundling most Code::Blocks plugins.
  • For older versions please check here

Join us on Facebook

Please wait..10 Seconds

 
how to program in JAVA core java tutorial java developer jobs java variables for beginners best java books