Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

>>-right shift

<<-left shift
\-special symbols
\n == endl
\t == tab 4 spaces
\a == alert
\0 == детерминираща 0;цлед всеки вид
\v
\ ==> \\
Functions:
Functions can have different types like int, string ,dobble,voids and alot more
We can put functions before int main so we can give it names and use it forever
when we code it correctly:
void name_of_void (){
body_of_function;

ДОМАШНО
да се направи анимация с поне 3 пози като всяка поза е в функция
и всяка поза да бъде с различен цвят на текста и фона и се управлява от различен
клавиш
!!!!!!!!!!!!!!!!!!pixel art
comands,that we want to happen
}
windows.h library
#include<windows.h>
system("cls");//we use it for clearing the screen
Sleep();//we use this to sleep and wait until doing the next command
GetAsyncKeyState('A')//to see what symbol we have used
system("colorA3")//used to change the color of the text,or background.
the first symbol is for text,the second one-for the background\
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

You might also like