Skip to content
Snippets Groups Projects
Commit 5ea8cbeb authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Lehrmaterialien, Beispiele und Tafelbilder 24.6.2019

parent cab14b2c
No related branches found
No related tags found
No related merge requests found
../common/Zeichen_123.pdf
\ No newline at end of file
File added
This diff is collapsed.
#include <list>
#include <string>
class data
{
public:
data (int x, std::string s) {};
};
int main ()
{
std::list <data> a;
a.push_back (data (42, "Hello, world!"));
return 0;
}
#include <list>
#include <string>
class data
{
public:
data (int x, std::string s) {};
};
int main ()
{
std::list <data> a;
a.push_back (data (42, "Hello, world!")); // Objekt wird auf dem Stack erzeugt, kopiert, vernichtet
a.emplace_back (137, "Hallo, Welt!"); // Objekt wird direkt im Container erzeugt (Rechtswertref.)
return 0;
}
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
../common/pgslides.sty
\ No newline at end of file
20190624/photo-20190624-121725.jpg

139 KiB

20190624/photo-20190624-121803.jpg

126 KiB

File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment