Computer Science Notes:
List of Headers and Commands:
<iostream.h>
- cin>>
- cout<<
- getline (<input stream>, <string vairable>)
"apstring.h"
<conio.h>
<math.h>
- fmod (a number, divisor)
- log (x)
- pow (number, exponent)
- sqrt (x)
<iomanip.h>
- setiosflags(<flag1> | <flag2> | …)
- fixed
- showpoint
- scientific
- right
- setw
- setprecision
<graphics.h>
- int graphdrivers
- initgraph
- moveto(int x, int y)
- lineto(int x, int y)
- outtext(<string>)
- linerel(<x distance>, <y distance>)
- moverel(<x distance>,<y distance>)
- circle(center_x, center_y, radius)
- rectangle(upper_x, upper_y, lower_x, lower_y)
- setlinestyle(<style>, <pattern>,<width>)
- Note:
- <style> is an integer
- <pattern> is zero for no pattern
- <width> is 1 for normal width and 3 for think width
Variable Types
- int
- double
- char
- apstring
- float
- long
- short int
- long int
Color Table
Name |
Value |
BLACK |
0 |
BLUE |
1 |
GREEN |
2 |
CYAN |
3 |
RED |
4 |
MAGENTA |
5 |
BROWN |
6 |
LIGHTGRAY |
7 |
DARKGRAY |
8 |
LIGHTBLUE |
9 |
LIGHTGREEN |
10 |
LIGHTCYAN |
11 |
LIGHTRED |
12 |
LIGHTMAGENTA |
13 |
YELLOW |
14 |
WHITE |
15 |
Go Back to the main Page
Computer Science Page