some basic about c++ which are used in coming lectures.
#include<iostream.h>this above is the header file of c++ in which # is called preprocessor #include showing it only take standard input having standard output .
iostream.h:
input/output stream(sequence of data in bytes) so iostream stands input data having standard input and output and the input output data inserting and extracting in sequence. extension always used .h in c++.
conio.h:
console input/output it only containing clrscr( ) as well as getch( ) .
cout<<"hello friend";
in this above line cout stands for console output (display message), << called insertion operator,"hello friend" if you write any thing inside these quotes then they similar show that message on your output screen.
cin>>a;
it stands for console input in this case user input a value for output result,>> operator called extraction operator.
getch( );
this element is used for holding the output screen only.
some basic useful definition:
variable: It is a used for storing a particular value.
Data type: first of all we must know in which type of data we want and then apply condition.
following are some major data type of c++:
- int(integer 1,2,3............and so on)
- char(character it is used for storing a single number or variable like char=a,char=1)
- float (it is used for decimal values)
- double float (it also used for decimal value but it acquiring double bytes than float )
- void is also a data type but it containing null or empty value that's why it is use in this program.
1byte=8bits.
integer containing 2 bytes,char 1 bytes,float 4 bytes and double float 8 bytes.
This video help you to understand about variables and data types.