jotoho / cpp2-praktikum Goto Github PK
View Code? Open in Web Editor NEWShared repository for my group to work on our C++2 weekly assignments. Code intended for educational purposes only.
License: Other
Shared repository for my group to work on our C++2 weekly assignments. Code intended for educational purposes only.
License: Other
Tasks
The following things are required of us:
3/
Liste
Liste()
~Liste()
void add(int wert)
void clear()
bool contains(int wert)
This week's task revolves around taking the previous work under /1/
and expanding on it with more features.
The following things are required of us:
1/
into folder 2/
(Done. See c33d225)Stack
class to use dynamically allocated memory, instead of a statically sized array on the stack.Stack();
Stack(const Stack&);
~Stack();
const Stack& operator=(const Stack&);
Stack::push(int)
method such that pushes to a full Stack allocates a larger block of memory, copies over the existing contents, frees the old block and adds the parameter to the new block of memory.int[]
to int*
. Should we take this to mean, that we cannot use a reliable storage structure, like a std::vector
internally and avoid all memory management headaches?Stack::push(int)
explicitly mentions copying the memory over. Does this mean we need to do so manually ourselves or can we use C stdlib functionality like realloc()
?While working on #18, we forgot to add our usual two-line comment to the beginnings of each of the source files.
We need to add them before submitting our work for university review.
In order to get admitted into the final exam of this course, we need to complete the following tasks.
Liste
class with the following methods. When ever a method fails, it should throw exceptions.
void add_last(int wert)
void add_first(int wert)
int remove_last()
int remove_first()
int get(std::size_t index)
operator[]
for the Liste
classListe
in the form of delegationI forgot to add the two lines of comment that should be at the beginning of cpp and hpp files when writing #10
Fraction
) muss der Bruch vorher erweitert werden, um auf den gleichen Nenner zu kommen. Ihre Implementierung berechnet zur Zeit 1/3 + 1/3 = 1/3, was eigentlich 2/3 ergeben müsste.It would only be fair, since this way it is more obvious to university reviewers that we're working on and submitting the same codebase. Not to mention that it might be more comfortable to review in browser or with git support.
Currently the CI job for locking threads and the github actions base used in the format checker refer to very broad version ranges. To avoid unplanned behaviour changes, I will be pinning those to specific version numbers.
If updates are pushed to those automations, I want to read the changelogs first and bump the dependency version number manually or with the help of dependabot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.