first commit

This commit is contained in:
2026-03-05 13:16:26 +01:00
commit 1b2bf174e8
164 changed files with 35594 additions and 0 deletions

49
Lab3/name.cpp Normal file
View File

@@ -0,0 +1,49 @@
//name.cpp
#ifndef __NAME_CPP__
#define __NAME_CPP__
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
#include "name.h"
//##################################################
// Name
// Puts name into a buffer
//==================================================
Name::Name(char *txt) {
buff = new char[strlen(txt) + 1];
strcpy(buff, txt);
}
//##################################################
// Destructor
// Delets buffer
//==================================================
Name::~Name() {
delete [] buff;
}
//##################################################
// Operator overload
// Deletes buffer and makes a new one