Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neiljohari/eecs280-lab08-simple_string
Marked up solution of a practice problem shown during Lab08.
https://github.com/neiljohari/eecs280-lab08-simple_string
Last synced: 27 days ago
JSON representation
Marked up solution of a practice problem shown during Lab08.
- Host: GitHub
- URL: https://github.com/neiljohari/eecs280-lab08-simple_string
- Owner: neiljohari
- Created: 2020-11-06T23:44:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T23:45:26.000Z (about 4 years ago)
- Last Synced: 2024-10-28T05:23:12.579Z (2 months ago)
- Language: C++
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EECS 280 SimpleString Example
_Note:_ This repository is **not** solution code for Lab08. This is a documented
solution for a practice problem shown during my EECS280 lab section for Lab08.This is a good example of how to use the Big 3 to effectively create your own
lightweight version of std::string. It is not nearly as efficient (doesn't take
advantage of c++11 move semantics), but it is a great example tying together
many concepts like C-Style strings, dynamically allocated memory, `delete` vs
`delete[]`, copy ctor, assignment operator, default parameters, etc.I encourage you to play around in `main.cpp`. I provided a Makefile so it should
be as easy as running `make` to compile the code (the executable will, by
default, be called `solution`).