Monday, 1 August 2016

Software Useful for (C++/C language)

Software Useful for (C++/C language)


You are ready to set up our operating system for C ++, you have the following
two software on the computer.

C++ Compiler:


This is the true C ++ compiler, the end compiler is used to compile the source code into executable C program.Most, no matter what you give to your source code, but unless otherwise noted, are many use CPP Standard. Most commonly used and free GNU compiler available C / C ++, otherwise you can either HP or Solaris have compiler, if you have the respective operating systems.


Text Editor:

Name and version of the text editor may vary on different operating systems. For example, Notepad will be used in Windows or vi and vim can be used in Windows and Linux or UNIX.The files that you create with your editor are called source files and C ++, which are usually a CPP expansion, .cp .c or appointed.starting your program, make sure that you have set a text editor, and you have enough experience to enter your program in C ++.This is used to give your program. Examples of some book publishers include Windows, OS Edition, letter, Epsilon, Emacs or vi and vim command.

Mac Installation:


MAc user have a best option is the best way for the GCC, Xcode development environment is available on Apple's website and follow the simple installation instructions.

Monday, 18 July 2016

Debugging Feature of Turbo C++


Debugging Feature of Turbo C++



Debugging Feature of Turbo C++:

·          Turbo C++ is an IDE (integrated development environment) tool. It provides us the facility to create, edit, delete, run, compile, and debugging the programs.
·         Turbo C++ provides many useful Debugging feature. Through these features, We can easily locate logical
·         And syntax errors. Debugging option is provided us a separate menu named Debug in the menu bar. Here is the brief description of these features.

Compiling a single line:

·         TC compiler provides an excellent option to compile the program line by line. This enable the programmer to easily locate errors. For compiling the single line at a time, select run Trace into OR pressing F7 shortcut key.

Watches:

·         Watches or watch expressions are used to check the value of a variable during the program execution. It shows that how and when the value particular variable is change. It is normally in combination with compiling single lines.

Follow the procedure is used to apply the watch or watch expressions.

·         Compile the program line by line through shortcut key F7.
·         During the execution, when control come to  the line that contain required variable, place the cursor on that variable whose value is to be checked.
·         Select debug watch from Menu bar. A sub will appear.
·         Select add watch from the sub menu OR simply use ctrl+F7 shortcut key. A dialog box will appear with selected variable shown in Watch expression field.
·         Click OK or Press Enter. TC sub window shows an error message automatically that shows the current value of the selected variable.

Breakpoints:

It is the most successful and an effective technique of the debugging. A breakpoint is a point in the program where the compiler temporarily stops the program execution, so that the programmer can analyze necessary values. TC provide easy way to use the mechanism for apply the breakpoints. A breakpoint applied through two simple steps:
Place the cursor on the line where you want to apply the breakpoint.
Select Debug Toggle breakpoint OR use Ctrl +F8 shortcut key. Turbo C++ automatically stops the program execution when control reached at that particular line.



Saturday, 2 July 2016

Basic Structure of a C Program

Basic Structure of a C Program:

Structure of a C program means the logic to write a program, C is structured Programming language. It provide a better way of writing programs. The linker of C program links many files before execution. There are two parts of a C structure.


  1. Per processor Directives.
  2. Main function.
  • Per-processor Directives:

The instruction given to the compiler before the beginning of the actual program are called per processor directives or compiler directives.

It always begins with # symbol e.g. #include, #define. These are the instructions that tells the compiler to perform an action before compiling the source program.

#include directive:

The include directive gives a program access to the library.

The include directive causes the per processor to insert definitions from a standard
header file into a program before compilation i.e The include directive tells the compiler where
to find the meaning of identifiers used in the programs.

It is used to include header files in the program.

Saturday, 25 June 2016

Advantage of C language:

System Programming:

C provide a powerful a approach for system programming.It was mainly designed to developed system software programs. Programmers can write complex
software program more easily than any other low level language.


Platform Independence:

C is a machine independent language. It means that programs written in C language Can be executed on any type of computer hardware with a little modification
.For example, a C program written for Intel micro-processor can be executed.

Small Language:

C is a very small language. It requires limited space (only some KB'S) on computer's hard disk.
It has only few reserve words. In spite of that' ts is very for developing different types of programs.

Fast Code Execution:

The code written in C language executes very quickly. Minimum code execution time is the major cause of using for big system level software projects. Its compiler
converts the source code into the object code in a very short period of time.

Flexible Codes:

 The programs written in C language are very flexible. A programmer can easily change codes. Procedures help the programmers
to utilise them for multiple purpose.


Structured Programming:

C provides structured programming approach. In structured programming a program is divided into small units called modelys. Each module consists of different instruction
to perform a particular task.

Easy to Learn and Use:

C is very simple language. It is easy to learn an use. Instruction of C have very simple Syntax. So, a programmer needs not necessary to have a detail knowledge of
computer architecture.

Note:

In next post . I define. How to Create, edit, save, compile and execute a C language program?

Thursday, 23 June 2016

Getting Started With "C" Language


Introduction to "C" Language:


  • C and C++ (used for writing system software). "c" language is High level Language. It is user friendly language. User can understand and learn High level language easily. The instruction of HLL are written in English statements.
  • HLL programs are easily to modify, debug and more reliable then other programming language.

Types of HIGH LEVEL Language:

Structured Programming language:

  • A programming language in which the logic of the program is divide into a number of smaller section or modules.
  • Each section of the program performs a specific function.
  • These program are easy to write, debug and modify.

Un-Structured Programming Language:

  • A programming Language in which the logic of the program is written in a single module.
  • It is very difficult to detect any error in the program.
  • Its is readablity is difficult.