2024-11-01 15:38:56 +04:00
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
void main() {
|
|
|
|
|
int N = 0;
|
2024-11-01 16:00:58 +04:00
|
|
|
|
int k = 0;
|
|
|
|
|
int l = 0;
|
2024-11-14 21:35:35 +04:00
|
|
|
|
void aboutme() {
|
|
|
|
|
printf("hello world\n");
|
|
|
|
|
printf("стародубцев\n");
|
|
|
|
|
printf("антон\n");
|
|
|
|
|
printf("юрьевич\n");
|
|
|
|
|
printf("ПИбд14\n");
|
|
|
|
|
printf("день:сегодня\n");
|
2024-11-14 21:29:39 +04:00
|
|
|
|
printf("privet mir");
|
2024-11-14 21:37:01 +04:00
|
|
|
|
// елочка
|
|
|
|
|
void StClausAuto(HDC hdc, int x, int y) {
|
|
|
|
|
// верхний треугольник
|
|
|
|
|
MoveToEx(hdc, 20 + x, 0 + y, NULL);
|
|
|
|
|
LineTo(hdc, 30 + x, 20 + y);
|
|
|
|
|
LineTo(hdc, 10 + x, 20 + y);
|
|
|
|
|
LineTo(hdc, 20 + x, 0 + y);
|
2024-11-14 20:41:03 +04:00
|
|
|
|
|
2024-11-14 21:37:01 +04:00
|
|
|
|
// средний треугольник
|
|
|
|
|
MoveToEx(hdc, 20 + x, 10 + y, NULL);
|
|
|
|
|
LineTo(hdc, 30 + x, 40 + y);
|
|
|
|
|
LineTo(hdc, 10 + x, 40 + y);
|
|
|
|
|
LineTo(hdc, 20 + x, 10 + y);
|
|
|
|
|
|
|
|
|
|
// нижний треугольник
|
|
|
|
|
MoveToEx(hdc, 20 + x, 30 + y, NULL);
|
|
|
|
|
LineTo(hdc, 40 + x, 80 + y);
|
|
|
|
|
LineTo(hdc, 0 + x, 80 + y);
|
|
|
|
|
LineTo(hdc, 20 + x, 30 + y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StNabor1(HDC hdc) {
|
|
|
|
|
|
|
|
|
|
StClausAuto(hdc, 0, 0);
|
|
|
|
|
StClausAuto(hdc, 200, 200);
|
|
|
|
|
StClausAuto(hdc, 100, 100);
|
|
|
|
|
StClausAuto(hdc, 0, 200);
|
|
|
|
|
StClausAuto(hdc, 200, 0);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StNabor2(HDC hdc) {
|
|
|
|
|
int x = 60;
|
|
|
|
|
int y = 0;
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
StClausAuto(hdc, x, y);
|
|
|
|
|
x = x + 60;
|
|
|
|
|
} while (x <= 180 * 2);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StNabor3(HDC hdc) {
|
|
|
|
|
int x = 60;
|
|
|
|
|
int y = 0;
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
StClausAuto(hdc, x, y);
|
|
|
|
|
y = y + 100;
|
|
|
|
|
} while (y <= 500);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void StNabor4(HDC hdc) {
|
|
|
|
|
int y = 0;
|
|
|
|
|
int x = 0;
|
|
|
|
|
do {
|
|
|
|
|
StClausAuto(hdc, x, y);
|
|
|
|
|
x += 50;
|
2024-11-14 21:35:35 +04:00
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
SetConsoleCP(1251);
|
|
|
|
|
SetConsoleOutputCP(1251);
|
|
|
|
|
aboutme();
|
|
|
|
|
}
|
2024-11-14 20:41:03 +04:00
|
|
|
|
|
|
|
|
|
int me;
|
2024-11-14 20:43:39 +04:00
|
|
|
|
// fvfr
|
2024-11-14 21:28:37 +04:00
|
|
|
|
for (int i = 0; i < n; i++) {
|
|
|
|
|
printf("%d", n);
|
|
|
|
|
}
|
2024-11-14 21:35:35 +04:00
|
|
|
|
void aboutme() {
|
|
|
|
|
printf("hello world\n");
|
|
|
|
|
printf("стародубцев\n");
|
|
|
|
|
printf("антон\n");
|
|
|
|
|
printf("юрьевич\n");
|
|
|
|
|
printf("ПИбд14\n");
|
|
|
|
|
printf("день:сегодня\n");
|
2024-11-14 21:04:26 +04:00
|
|
|
|
|
2024-11-14 21:35:35 +04:00
|
|
|
|
}
|
2024-11-14 21:04:26 +04:00
|
|
|
|
|
2024-11-14 21:35:35 +04:00
|
|
|
|
void main() {
|
|
|
|
|
SetConsoleCP(1251);
|
|
|
|
|
SetConsoleOutputCP(1251);
|
|
|
|
|
aboutme();
|
|
|
|
|
}
|
|
|
|
|
void aboutme() {
|
|
|
|
|
printf("hello world\n");
|
|
|
|
|
printf("стародубцев\n");
|
|
|
|
|
printf("антон\n");
|
|
|
|
|
printf("юрьевич\n");
|
|
|
|
|
printf("ПИбд14\n");
|
|
|
|
|
printf("день:сегодня\n");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
SetConsoleCP(1251);
|
|
|
|
|
SetConsoleOutputCP(1251);
|
|
|
|
|
aboutme();
|
|
|
|
|
}
|
2024-11-14 21:04:26 +04:00
|
|
|
|
// добавил ничего
|
2024-11-01 15:38:56 +04:00
|
|
|
|
printf("fghjy");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|