Nigel
dea8ab7d71
Added new entries to .gitignore Moved away from source directory as central spot for all source code
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;
|
|
|
|
|
|
}; |