Skip to content

Instantly share code, notes, and snippets.

Danil Grishaev daniilgri

View GitHub Profile
View Blyat.cpp
#include "Parallelogram.h"
#include <iostream>
#include <math.h>
constexpr auto PI = 3.14159265;
using namespace std;
Parallelogram::Parallelogram()
{
View сука.cpp
#include "Parallelogram.h"
#include <iostream>
#include <math.h>
using namespace std;
Parallelogram::Parallelogram()
{
this->side = NULL;
this->height = NULL;
View main.cpp
#include <iostream>
#include "Parallelogram.h"
using namespace std;
int main()
{
Vector2D vector1(10, 30);
Vector2D vector2(20, 40);
Parallelogram parallelogram(vector1, vector2);
@daniilgri
daniilgri / DinLst.cpp
Last active Feb 26, 2019
New version!!!
View DinLst.cpp
#include <string>
#include "DinLst.h"
#include <iostream>
#include <fstream>
#include <windows.h>
using namespace std;
List* ReadFromFile(string fName, string lName) {
ifstream fin(fName);
View wfe.cpp
List* ReadFromFile(char* name, char* lname) {
FILE* f = fopen(name, "r");
char *a;
if(!f) {
printf("Ошибка открытия файла");
}
List *list = CreateList(lname, "info");
while(fgets(a, 100,f)) {
if(!feof(f)) {
AddHead(list, a);
View DinLst.h
//---------------------------------------------------------------------------
#ifndef DinLstH
#define DinLstH
//---------------------------------------------------------------------------
#endif
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
View DinLst.cpp
//---------------------------------------------------------------------------
#pragma hdrstop
#include "DinLst.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
View wtf.cpp
#include "pch.h"
#include <stdio.h>
#include <conio.h>
int** createArr(int n, int m) {
int i, j;
int** arr = new int*[n];
for (i = 0; i < n; i++) {
arr[i] = new int[m];
View 15.cpp
#include "pch.h"
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#include <math.h>
int main() {
SetConsoleOutputCP(1251);
SetConsoleCP(1251);
View DoubleArr2_14.cpp
#include "pch.h"
#include <stdio.h>
#include <conio.h>
int** createArr(int n, int m) {
int i, j;
int** arr = new int*[n];
for (i = 0; i < n; i++) {
arr[i] = new int[m];
You can’t perform that action at this time.