Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
using namespace std;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
int* temps;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
public:
Electrochainik(string brand, float volume) {
SetBrand(brand);
SetVolume(volume);
Main.cpp
#include "electrochainik.h"
#include "kniga.h"
#include "telephon.h"
#include "gelevayaruchka.h"
#include "cupura.h"
int main() {
Electrochainik kettle("Philips", 1.7);
#include <iostream>
#include <string>
using namespace std;
// Электрочайник
class Electrochainik {
private:
string brand;
float volume;
#include <iostream>
#include <string>
using namespace std;
class Electrochainik {
public:
string brand;
float volume;
Electrochainik(string brand, float volume)
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <algorithm>
using namespace std;
int main() {
srand(time(0));
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
Index.html
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Сайт класу</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
import pygame
import time
import random
pygame.init()
white = (255, 255, 255)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
#include <iostream>
#include <conio.h>
#include <windows.h>
using namespace std;
const int width = 20;
const int height = 20;
//направление