18 lines
279 B
C
18 lines
279 B
C
|
#pragma once
|
||
|
#include <stddef.h>
|
||
|
|
||
|
class String {
|
||
|
public:
|
||
|
String(char* characters);
|
||
|
String(String&) = default;
|
||
|
unsigned int length();
|
||
|
|
||
|
char* str ();
|
||
|
char operator[](size_t index) ;
|
||
|
const char operator[](size_t idx) const;
|
||
|
|
||
|
protected:
|
||
|
char* chars;
|
||
|
|
||
|
|
||
|
};
|