Skip to main content

C Plus Plus programming tutorial | Basics of C++

NETWORK TECH WORLD

 C Plus Plus programming tutorial | Basics of C++

This tutorial is about C++ Programming language. I will teach C++ from very basics to advanced level in this post and upcoming posts. Just wait and read all the posts regularly.
This tutorial is mainly about theoretical knowledge but is very important!
Some Definitions :
  •  Bit : It is the smallest unit a computer can understand. it is either 0 or 1. 0 generally means circuit is OFF and 1 means ON.
  • ASCII : All characters on keyboard have a code which is known as ASCII code.
    Range A-Z  ->  65-90
    a-z  ->  97-122
  • Byte : Group of 8 bits. 1 byte means 1 character.
  • Program : It is a step by step instruction which tell what to do and how to do.
  • Object Code : A program which a machine can understand is called Object Program.\
Compiler : 
A program which converts source code[ English like step wise instruction to computer] to object code[language which a machine can understand].
IT executes the entire program at once and hence It is faster.
Interpreter :
A program which converts source code[ English like step wise instruction to computer] to object code[language which a machine can understand]. But the interpreter executes the program line by line and hence it is slower.
Constants : 
Integer Constant :
  • Consist of 0-9
  • Doesn’t includes commas or spaces.
  • Preceded by a + or – sign. + sign is assumed if there isn’t any sign.
Character constants : Any single character enclosed in single quote (‘). Ex :- ‘a’ ,  ’b’ .
Strings : Generally consist of more than one character within double quote (“).
Ex: “comp”, “abcd”.
Difference between String and Character :
Character constant takes 1 byte for storage while string constant takes 2 bytes for storage because in String  a byte is reserved for Null Byte.
Memory representation : 
Character : ‘A’    ==   |A| << stored in one memory cell
String : “A”  ==  |A|\0|  << stored in 2 memory cells with \0 as a NULL byte.
Variables in C++ : These are the tokens that are identified by identified by an identifier and change the value during execution.
Ex : int a=5;
a=a+3;
cout<<a;
Here a is a variable. The initial value of a was 5 but it was then changed to 8 by command a=a+3 .

Comments

Popular posts from this blog

Distance learning online course

NETWORK TECH WORLD If anybody wants to doing online distance learning courses are We all the courses. BA, MA, BCOM, MCOM, BCA, MCA, BSC IT, MSC IT, BED, MED, BSC, MSC, B LIB, M LIB, BTECH, MTECH, BBA, MBA, D PHARMA, B PHARMA, BHM, DHM, MHM, PhD, Bped, More etc or 10th and 12th University's are 1. IEC University Himachal Pradesh 2. Sunrise University Alwar Rajasthan 3. Himalayan Garhwal University Uttrakhand 4. Sangai International University Manipur 5. Calorx University Ahmedabad Gujarat 6. Himalayan University Arunachal Pradesh 7. Arni University Himachal Pradesh 8.Subharti University Inquiry call or what's app number is 7017329859 or comments below thank u.

How to increase your internet speed

NETWORK TECH WORLD  How to increase your internet speed Moderate Internet speed is the most ghastly and abominable condition for each Internet client. It influences the work of the clients and causes wastage of time. There are numerous purposes for the moderate Internet speed. Luckily, you can build the pace of your net association with a few enterprises. Top 5 ways to increase your internet speed Use antivirus program: A standout amongst the most normal purposes for the moderate  Internet speed  is infection, spy wares and ad ware. These infections influence the Internet settings and capacities that in turn cause moderate scanning speed. Thus, it is fitting that you institute exceptional quality against infection programming to get freed from the infection and their terrible impacts. Filter your workstation on a normal foundation with a hostile to infection to evacuate all the infections and ad ware. Use ad ware evacuation system and spy ware evac...

How BT phone cards works

NETWORK TECH WORLD Subject: Re: fonecards Date: Thu, 14 Sep 95 18:04:28 GMT References: <DEwv47.Cv8@spuddy.mew.co.uk> <43blpt$9ke@columbia.acc.brad.ac.uk> Here Ya go: ---------START OF TEXT ----------- HOW BT PHONE CARDS WORK - Transcribed by Archaos - June '93 -----------------------   ----------------------   -------- Contrary to popular belief, BT phonecards do not work using a magnetic strip system. The reason for this being that a magnetic strip would be read only. So how do they work then? Well, examine a phonecard - preferably a used one if you are going to scratch it or dissect it. If you look on the printed surface (the green side - which is the front) you will find two lines which form a thick band. Underneath this area is a "track" which holds the information about the number of units used up and how many are left. A used phonecard will have some tiny bars marked on the track near one end. On the reverse side of the phoneca...