Tuesday, 31 May 2016

Write a program to add two numbers:

1. value given at run time:

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
a=10;
b=12;
Cout<<"Addition is="<<a+b;
getch();
}

Out put: Addition is=22


2.value given at compile time

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
cout<<"enter value of a=";
cin>>a;
cout<<"enter value of b=";
cin>>b;
cout<<"Addition is="<<a+b;
getch();
}

Out put: enter value of a=12
               enter value of b=10

press enter

                  Addition is=22

Monday, 30 May 2016

Data types in c++:

1.Int                      (for integer numbers like 1,2  etc)
2.Float                  (for fraction digits like 1.5, 3.4 etc)
3.Char                   (For characters like a. A, B etc)
4.Boolean              (for true or false)

Wednesday, 25 May 2016

First c++ program:

#include<iostream.h>       //This is header file
#include<conio.h>           //This is header file
void main()                     // Starting of main program 
{
cout<<"first program";    //This will print the "first prgram " at screen
getch();                            //end of program
}

The user who is using dev can type following program:
#include<iosream>
using namespace std;

and then start from void main(){
cout<<"first program";


Sysem ("pause")
}

Type these programs on your compiler and then run it.
for turbo compiler run commond is f9:

Tuesday, 17 May 2016

C++:

Let us start c++:
First of install a compiler for the compilation of c++ programs:
You can install turbo or dev ++ for the compilation of programs.You can download these software from filehippo.com.

Wednesday, 11 May 2016

Java:

Java is an object oriented programming language.The syntax of java related to other object oriented languages.Java is mostly used to developing smart phones apps, games.Java is also used in web developing.

Tuesday, 10 May 2016

Introduction

Brief introduction of computer programming languages.

C:

C is a procedural language.It is also called mother language.Now a days it is used to develop hardware based software projects.It is used to develop software related to assembly etc.

C++:

c++ is a object oriented language. It is used to develop desktop apps and web apps etc.
C++  is a powerful language.The syntax of c++ is bit different from c.

Monday, 9 May 2016

List of computer programming languages.

The list of  popular programming languages is following
1..c
2..c#
3.c++
4.VB
5.Java
6. Php
7.Perl
8.Python
9.Asp

What is computer programming.

Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable computer programs. Programming involves activities such as analysis, developing understanding, generating algorithms, verification of requirements of algorithms including their correctness and resources consumption, and implementation (commonly referred to as coding of algorithms in a target programming languageSource code is written in one or more programming languages. The purpose of programming is to find a sequence of instructions that will automate performing a specific task or solving a given problem. The process of programming thus often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic.
Related tasks include testingdebugging, and maintaining the source code, implementation of the build system, and management of derived artifacts such as machine code of computer programs. These might be considered part of the programming process, but often the term software development is used for this larger process with the term programmingimplementation, or coding reserved for the actual writing of source code. Software engineering combines engineering techniques with software development practices.

Information Technology in Pakistan

Information technology in Pakistan is a growing and rising industry that has a lot of potential. Matters relating to the IT industry are overseen and regulated by the Ministry of Information and Broadcasting of the Government of Pakistan. The IT industry is regarded as a successful sector of Pakistan economically, even in financial crisis. The government of Pakistan has given numerous incentives to IT investors in the country during the last decade, this resulted in the development of the IT sector. In the years 2003-2005 the country's IT exports saw a rise of about fifty percent and amounted a total of about 48.5 million USD. The World Economic Forum, assessing the development of Information and Communication Technology in the country ranked Pakistan 111th among 144 countries in the Global Information Technology report of 2014.