C++ course by Ztechnology
What is cout?
Cout is the abbrevation of (see-out). In computer programming, it is used for the purpose of output.
Its syntax is:
cout<<”TEXT SHOWN ON SCFREEN”;
DATA TYPES USED IN C++
What are data types?
Data types are used to store data in a c program. They act as a storer in computer programming.
THE MOST COMMONLY USED DATA TYPES:
EXAMPLE
INT |
STORES INTEGERS |
1, -1, 2, -5, 10 ETC |
FLOAT |
STORES SHORT DECIMAL VALUES |
6.232323332323 ETC |
DOUBLE FLOAT |
STORES LONG DECIMAL VALUES |
62.3232323232332 ETC. |
CHAR |
STORES A CHARACTER |
A, S, F, G ETC. |
STRING |
STORES TEXT |
LAPTOP ETC. |
BOOLEAN |
PRODUCES TRUE AND FALSE |
0, 1, LOGIC GATES |