From 88427ffa73f9290d83a90f301522fe40e820a003 Mon Sep 17 00:00:00 2001 From: "s.eser" Date: Fri, 31 May 2024 12:55:46 +0200 Subject: [PATCH] Vorbereitung auf Aufgabe 3 --- .vscode/c_cpp_properties.json | 19 +++++++++++++++++++ Aufgabe1_2 | Bin 40600 -> 40712 bytes Aufgabe1_2.cpp | 15 +++++++++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..9a0a2f5 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,19 @@ +{ + "configurations": [ + { + "name": "Mac", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "macFrameworkPath": [ + "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "c17", + "cppStandard": "c++17", + "intelliSenseMode": "macos-clang-arm64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Aufgabe1_2 b/Aufgabe1_2 index f9bd20146fe229b5e46604c318033277dad7ebe9..02dba330b3cecc5391a39193770d3228299723c1 100755 GIT binary patch delta 3251 zcmZXW4NO#57J$!vZ;(+(e!{p;L>jfgN6BK3!i6l-;$ z*e)&ZcBYrMq-u-Wc9F%FmNvocx}xi@P1kKuH>F9f9o@D}x@mXauvsSSNY8oi(Ad|T zx$nO3oO91P@4S2Oo9;78#~+ozNTMwZKmfp|1iWCg1#grj`dqrOk~G+SGFOz$zEG@7 z$8{kPEApHvS@ww3#G(6j?QGT#$;+Zd4h!>i2YVTjY08*lPLVUzyn-GyQ?T2xyPpMk z6vyFCfR03fnRs7`o!V0F({L=7yVVpiB71l|_#Ui1=m-N}S&qgo3`7%2M)x6= zgR1UGcn(CSY!$T4W!vx^cf=fZUp2?TtsAPjk9>z!_S3$3;wI`(pg&CPN}4w3K|O$N z$^mBG(|+9rqP2J`V=W1EWX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|rv*e@0PO}-<(iJt*{&<{CIT2V*p23#S|EEug0 zOu;T8jE*&U2_hJPfRqH2Olq;DX#$I-Y1`;v~{AiV)vePlrxryPAP=UrW+ zFFw+SZ@jTbaa|!_&@jarK869G6KiKqlRV<(naibp;_}QiF<_4uH!>2;773aLahM+z zXb!N6;$-lCqLfy3%<9ux)j_*XE>yXaAY$l9ZqTmbu%gIqu4F7lsealFy>9|oMSsH%PC`> zx3k-2o%iZ5yyM-^7kA;arNh4{`w8oG1~vH;Ssb<6^AW7~pl4Yp0Q0h+NbFTfbsDkwLC74}AM z7sz-Xpewt17g)azMZvCUIl0pqjRd%Q)})ume_h8G}K(e>aBl(TSWYfz9&=>p^@ zm*mggSmiCPsPa@VEGvfDmE|r^ji+q0*W)Vpl)63DP^>`xYLvQQVI}HdBjWC8CC9xW zF@06Kan({`+G+CvwBx%-mi%DMP?K5@^HJs)o$A+Rs{Y5BZOrd5?`A&5{66!S%stG% zFelnD9*z%VY@p4>eS&8(%h7~rlZoGCu4n#%nKqyNCF4|mC|BhVm@Sw!$^R2`4)Zj< zsy~42BS94#PP5S4$U6d9JI<{6z6o) zb4}?K8;ex5`I+^lPkXXl+3@s(`U-qnUZm6Kjg+2^>Cle4UQsB~WEu|KD; z71s}0olkj>w|)55j>_S{@;&=KB~tg!?_9B4ht?F^zc_z(&kF;K!aqMzU(~eN()-oN zCm+eY7^wSe&A^WC6O+&MozD1nl}XHh%U`s`R`dOdlSO;~*xvhF+GnR`6<3(w+p+Mw w3`n}RIQ_W3cFMNT4m&3={yItDJ+$R>Z|zr(!Jxi&p!(v?PZpJ3D82@N13NNKY5)KL diff --git a/Aufgabe1_2.cpp b/Aufgabe1_2.cpp index 42be0de..a866de6 100644 --- a/Aufgabe1_2.cpp +++ b/Aufgabe1_2.cpp @@ -1,6 +1,4 @@ #include -#include -#include // Template für flexiblen Array Typ template @@ -38,7 +36,7 @@ public: // Destruktor ~Container() { // Speicherfreigabe von Array Inhalt - delete[] data; + // delete[] data; } // Überladung des [] Operators @@ -57,10 +55,10 @@ public: } }; -int main() { +Container readWavFile(){ + // Erstellen der Klasseninstanz mit Konstruktor Container wavData(0); - // Pointer auf test.wav FILE* input; // Variable zum Abspeichern von Byte Größe der wav Datei @@ -90,7 +88,12 @@ int main() { // Freigabe des FILE Pointer fclose(input); - std::cout << "wavData: " << wavData.getArraySize() << std::endl; + return wavData; +}; + +int main() { + + std::cout << "wavData: " << readWavFile().getArraySize() << std::endl; return 0; };