Odnodnevka2/Main1/Main1.cpp
2024-11-14 22:16:21 +04:00

121 lines
2.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
#include <Windows.h>
void main() {
int N = 0;
int k = 0;
int l = 0;
void aboutme() {
printf("hello world\n");
printf("стародубцев\n");
printf("антон\n");
printf("юрьевич\n");
printf("ПИбд14\n");
printf("день:сегодня\n");
printf("privet mir");
// елочка
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);
// средний треугольник
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;
void main() {
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
aboutme();
}
int me;
// fvfr
for (int i = 0; i < n; i++) {
printf("%d", n);
}
void aboutme() {
printf("hello world\n");
printf("стародубцев\n");
printf("антон\n");
printf("юрьевич\n");
printf("ПИбд14\n");
printf("день:сегодня\n");
}
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();
}
// добавил ничего
printf("fghjy");
}