Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Felix Huther
Programmieren2
Commits
7a3379c8
Commit
7a3379c8
authored
May 21, 2022
by
Felix Huther
Browse files
hoersaalUebung Smart Pointer
parent
398c049f
Changes
38
Hide whitespace changes
Inline
Side-by-side
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/.idea/.gitignore
0 → 100644
View file @
7a3379c8
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/.idea/Hoersaal.iml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<module
classpath=
"CMake"
type=
"CPP_MODULE"
version=
"4"
/>
\ No newline at end of file
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/.idea/misc.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CMakeWorkspace"
PROJECT_DIR=
"$PROJECT_DIR$"
/>
</project>
\ No newline at end of file
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/.idea/modules.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/Hoersaal.iml"
filepath=
"$PROJECT_DIR$/.idea/Hoersaal.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/.idea/vcs.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/../../.."
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
HoersaalUebungen/13.05.202_Ref_Hoersaal- Copy/Hoersaal/CMakeLists.txt
0 → 100644
View file @
7a3379c8
cmake_minimum_required
(
VERSION 3.22
)
project
(
Hoersaal
)
set
(
CMAKE_CXX_STANDARD 14
)
include_directories
(
.
)
add_executable
(
Hoersaal
hdamember.cpp
hdamember.h
lecturemember.cpp
lecturemember.h
Lecturer.cpp
Lecturer.h
main.cpp
student.cpp
student.h
university.cpp
university.h
)
HoersaalUebungen/20.05.2022_QT_Gui/UI/.gitignore
0 → 100644
View file @
7a3379c8
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------
*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash
# qtcreator generated files
*.pro.user*
# xemacs temporary files
*.flc
# Vim temporary files
.*.swp
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*
# MinGW generated files
*.Debug
*.Release
# Python byte code
*.pyc
# Binaries
# --------
*.dll
*.exe
HoersaalUebungen/20.05.2022_QT_Gui/UI/UI.pro
0 → 100644
View file @
7a3379c8
QT
+=
core
gui
greaterThan
(
QT_MAJOR_VERSION
,
4
)
:
QT
+=
widgets
CONFIG
+=
c
++
17
#
You
can
make
your
code
fail
to
compile
if
it
uses
deprecated
APIs
.
#
In
order
to
do
so
,
uncomment
the
following
line
.
#
DEFINES
+=
QT_DISABLE_DEPRECATED_BEFORE
=
0
x060000
#
disables
all
the
APIs
deprecated
before
Qt
6.0
.
0
SOURCES
+=
\
main
.
cpp
\
mainwindow
.
cpp
HEADERS
+=
\
mainwindow
.
h
FORMS
+=
\
mainwindow
.
ui
#
Default
rules
for
deployment
.
qnx
:
target
.
path
=
/
tmp
/
$$
{
TARGET
}
/
bin
else
:
unix
:
!
android
:
target
.
path
=
/
opt
/
$$
{
TARGET
}
/
bin
!
isEmpty
(
target
.
path
)
:
INSTALLS
+=
target
HoersaalUebungen/20.05.2022_QT_Gui/UI/main.cpp
0 → 100644
View file @
7a3379c8
#include
"mainwindow.h"
#include
<QApplication>
#include
<vector>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
a
(
argc
,
argv
);
MeinWindow
w
;
w
.
show
();
return
a
.
exec
();
}
HoersaalUebungen/20.05.2022_QT_Gui/UI/mainwindow.cpp
0 → 100644
View file @
7a3379c8
#include
"mainwindow.h"
#include
"ui_mainwindow.h"
MeinWindow
::
MeinWindow
(
QWidget
*
parent
)
:
QMainWindow
(
parent
)
,
ui
(
new
Ui
::
MainWindow
)
{
ui
->
setupUi
(
this
);
}
MeinWindow
::~
MeinWindow
()
{
delete
ui
;
}
HoersaalUebungen/20.05.2022_QT_Gui/UI/mainwindow.h
0 → 100644
View file @
7a3379c8
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include
<QMainWindow>
QT_BEGIN_NAMESPACE
namespace
Ui
{
class
MainWindow
;
}
QT_END_NAMESPACE
class
MeinWindow
:
public
QMainWindow
{
Q_OBJECT
public:
MeinWindow
(
QWidget
*
parent
=
nullptr
);
~
MeinWindow
();
private:
Ui
::
MainWindow
*
ui
;
};
#endif // MAINWINDOW_H
HoersaalUebungen/20.05.2022_QT_Gui/UI/mainwindow.ui
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
MainWindow
</class>
<widget
class=
"QMainWindow"
name=
"MainWindow"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
800
</width>
<height>
600
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
MainWindow
</string>
</property>
<widget
class=
"QWidget"
name=
"centralwidget"
/>
<widget
class=
"QMenuBar"
name=
"menubar"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
800
</width>
<height>
25
</height>
</rect>
</property>
</widget>
<widget
class=
"QStatusBar"
name=
"statusbar"
/>
</widget>
<resources/>
<connections/>
</ui>
HoersaalUebungen/20.05.2022_SmartPointer/.idea/.gitignore
0 → 100644
View file @
7a3379c8
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
HoersaalUebungen/20.05.2022_SmartPointer/.idea/.name
0 → 100644
View file @
7a3379c8
20_05_2022_SmartPointer
\ No newline at end of file
HoersaalUebungen/20.05.2022_SmartPointer/.idea/20.05.2022_SmartPointer.iml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<module
classpath=
"CMake"
type=
"CPP_MODULE"
version=
"4"
/>
\ No newline at end of file
HoersaalUebungen/20.05.2022_SmartPointer/.idea/misc.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CMakeWorkspace"
PROJECT_DIR=
"$PROJECT_DIR$"
/>
</project>
\ No newline at end of file
HoersaalUebungen/20.05.2022_SmartPointer/.idea/modules.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/20.05.2022_SmartPointer.iml"
filepath=
"$PROJECT_DIR$/.idea/20.05.2022_SmartPointer.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
HoersaalUebungen/20.05.2022_SmartPointer/.idea/vcs.xml
0 → 100644
View file @
7a3379c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/../.."
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
HoersaalUebungen/20.05.2022_SmartPointer/CMakeLists.txt
0 → 100644
View file @
7a3379c8
cmake_minimum_required
(
VERSION 3.22
)
project
(
20_05_2022_SmartPointer
)
set
(
CMAKE_CXX_STANDARD 14
)
include_directories
(
.
)
add_executable
(
20_05_2022_SmartPointer
hdaMember.cpp
hdaMember.h
Lecturer.cpp
Lecturer.h
main.cpp
Student.cpp
Student.h
University.cpp
University.h
)
HoersaalUebungen/20.05.2022_SmartPointer/Lecturer.cpp
0 → 100644
View file @
7a3379c8
//
// Created by Benjamin Meyer on 22.04.2022.
//
#include
"Lecturer.h"
Lecturer
::
Lecturer
(
std
::
string
name
)
:
HDAMember
(
name
)
{
}
void
Lecturer
::
talk
()
{
static
int
count
=
0
;
if
(
count
<
5
){
count
++
;
std
::
cout
<<
"PG ist wichtig!"
<<
std
::
endl
;
talk
();
}
else
count
=
0
;
}
void
Lecturer
::
myName
()
{
//HDAMember::myName();
std
::
cout
<<
"Mein Name lautet: "
<<
name
<<
" und ich bin ein Dozent."
<<
std
::
endl
;
}
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment