22 Commits
Author SHA1 Message Date
kachelto100370 6aa59ce710 Merge remote-tracking branch 'origin/Krisp' into tobi_experimental 2025-12-12 09:58:27 +01:00
kachelto100370 abf78fb87f small fix in numbers 2025-12-10 15:00:50 +01:00
kachelto100370 aa07932c6a add to .gitignore 2025-12-10 14:59:45 +01:00
kachelto100370 85aedf3b8d add highscores.txt back to gitignore 2025-12-09 10:30:29 +01:00
kachelto100370 1d7de0f5e3 Merge remote-tracking branch 'origin/Krisp' into tobi_experimental 2025-12-09 10:12:19 +01:00
kachelto100370 6311aff9d7 Merge remote-tracking branch 'origin/Krisp' into tobi_experimental 2025-12-09 09:59:34 +01:00
kachelto100370 e7a9f798cb add some .o files to gitignore 2025-12-09 09:56:38 +01:00
kachelto100370 3a078e9dea working on bintree 2025-12-07 13:13:43 +01:00
kachelto100370 74fdcf500f stack.c test laufen alle 2025-12-05 11:54:23 +01:00
kachelto100370 382c36b1b4 Merge remote-tracking branch 'origin/RMax' into tobi_experimental 2025-12-05 11:16:21 +01:00
kachelto100370 81de4b3d36 arbeiten an stack.c 2025-12-05 11:13:27 +01:00
Max-R 09426ae40a tests bis auf clearstack laufen 2025-12-05 11:10:20 +01:00
Max-R 9443171664 create node 2025-12-05 11:04:09 +01:00
Max-R b28deeaafb mhm 2025-12-05 10:53:03 +01:00
Max-R 4bb0d7516e stak.c 2025-12-05 10:48:10 +01:00
Max-R ddd4132e1f erste tests stack.c 2025-12-05 10:41:30 +01:00
kachelto100370 624a7d8b41 slight changes to stackNode struct, void func, etc 2025-12-05 10:41:08 +01:00
kachelto100370 73ebc36c05 Merge branch 'KrispTobi' into tobi_experimental 2025-12-05 10:31:47 +01:00
Max-R e7423f0a20 stack.c 2025-12-05 10:26:10 +01:00
Max-R 7051134256 stack.h 2025-12-05 10:21:00 +01:00
Max-R 735195460c mein Branch 2025-12-02 10:44:15 +01:00
kachelto100370 ecb5f360e3 add highscore to gitignore 2025-12-02 10:35:34 +01:00
8 changed files with 110 additions and 3 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
doble_initial.exe
*.o
*.exe
highscore.txt
runTests
stack.o
test_stack.o
highscores.txt
stack.o
+18
View File
@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "C:/ProgramData/mingw64/mingw64/bin/gcc.exe",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}
+24
View File
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "c:/Users/Max-R/I2Pr/info2Praktikum-DobleSpiel",
"program": "c:/Users/Max-R/I2Pr/info2Praktikum-DobleSpiel/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
+59
View File
@@ -0,0 +1,59 @@
{
"C_Cpp_Runner.cCompilerPath": "gcc",
"C_Cpp_Runner.cppCompilerPath": "g++",
"C_Cpp_Runner.debuggerPath": "gdb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
}
BIN
View File
Binary file not shown.
+1
View File
@@ -1,5 +1,6 @@
CC = gcc
FLAGS = -g -Wall -lm
ASAN_FLAGS = -fsanitize=address
ifeq ($(OS),Windows_NT)
include makefile_windows.variables
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -11,7 +11,7 @@
} StackNode;*/
// TODO: grundlegende Stackfunktionen implementieren:
/* `push`: legt ein Element oben auf den Stack,
/* * `push`: legt ein Element oben auf den Stack,
* `pop`: entfernt das oberste Element,
* `top`: liefert das oberste Element zurück,
* `clearStack`: gibt den gesamten Speicher frei. */
@@ -69,7 +69,7 @@ StackNode *pop(StackNode *stack) {
nextNode->prev = NULL; // der Zeiger zum Kopf wird auf NULL gesetzt
}
free(stack);
free(stack);
stack = NULL; // Speicher des Kopfes freigeben