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

72
Lab6/str.cpp Normal file
View File

@@ -0,0 +1,72 @@
#include <iostream.h>
#include <string.h>
#include "Str.h"
Str::Str():curPos(0){
str = new char[200];
}
Str::Str(char* _str){
str = new char[200];
strcpy(str, _str);
}
Str::~Str(){
delete [] str;
}
bool Str::operator==(Str &src){
if(strcmp(src.getStr(), getStr()) == 0)
return true;
return false;
}
Str::Str(const Str& src)
{
str = new char [strlen(src.str)+1] ;
strcpy(str,src.str);
}
Str& Str::operator =(const Str &src){