This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ПРАКТИЧНИЙ ПРОЄКТ (чернетка) | |
з дисципліни "Програмування з використанням мови C++" | |
(процедурна частина) | |
Двовимірна гра "ТЕТРІС" | |
Виконав студент гр. СПР411 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
double power(double* base, int* exp); | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
#include <string> | |
using namespace std; | |
// Завдання на рекурсію (12 задач) | |
// 1) Від 1 до n. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE Store | |
-- https://gist.github.com/sunmeat/59dc33337af869024a7b18602b556b00 | |
-- Бажано побудувати діаграму бази даних за посиланням. | |
-- 1. Вивести кількість товарів кожної категорії, середня ціна поставки яких | |
-- більше 100 гривень. | |
SELECT | |
c.name [Категорія], | |
AVG(d.price) [Середня ціна поставки], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
#include <conio.h> // _getch | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
// Розміри ігрового поля (глобальні константи як виняток) | |
const int HEIGHT = 25; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE Store | |
-- https://gist.github.com/sunmeat/59dc33337af869024a7b18602b556b00 | |
-- Бажано побудувати діаграму бази даних за посиланням. | |
-- 1. Показати назви товарів та їх виробників, а також тих виробників, | |
-- у яких немає товарів. | |
SELECT p.name [Товар], vyr.name [Виробник] | |
FROM Product p | |
RIGHT JOIN Producer vyr ON p.id_producer = vyr.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> // для роботи з потоками вводу/виводу | |
#include <windows.h> // щоб використати функцію SetConsoleOutputCP | |
#include <cmath> // математична бібліотека | |
using namespace std; | |
// Завдання на функції (7 задач) | |
// ПОЧАТОК КОДУ ЗАДАЧІ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE Store | |
-- https://gist.github.com/sunmeat/59dc33337af869024a7b18602b556b00 | |
-- Бажано побудувати діаграму бази даних за посиланням. | |
-- 1. Показати назви та категорії товарів, постачальниками яких є ООО "Паньки" | |
-- або ООО «Які люди», вірніше 'Смачний Стіл Знову' або 'Котигорошко'. | |
SELECT p.name [Товар], c.name [Категорія], s.name AS [Перевірка постачальника] | |
FROM Delivery d | |
JOIN Product p ON d.id_product = p.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> // для роботи з потоками вводу/виводу | |
#include <windows.h> // щоб використати функцію SetConsoleOutputCP | |
#include <cstdlib> // для роботи з генерацією випадкових чисел | |
#include <ctime> // те саме | |
#include <algorithm> // зокрема, функції для роботи з масивом | |
#include <cmath> // математична бібліотека | |
#include <iomanip> // для налаштування вирівнювання | |
#include <string> // щоб застосувати рядковий тип | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> // для роботи з потоками вводу/виводу | |
#include <windows.h> // щоб використати функцію SetConsoleOutputCP | |
#include <cstdlib> // для роботи з генерацією випадкових чисел | |
#include <ctime> // те саме | |
#include <string> // щоб застосувати рядковий тип | |
#include <cmath> // математична бібліотека | |
#include <iomanip> // для налаштування вирівнювання | |
using namespace std; |
NewerOlder