From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Prog1/Prakt4/index.htm | 253 ++++++++++++++++++++++++++++ Bachelor/Prog1/Prakt4/prg1p4_1/main.cpp | 148 ++++++++++++++++ Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsp | 100 +++++++++++ Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsw | 29 ++++ Bachelor/Prog1/Prakt4/prg1p4_2/main.cpp | 123 ++++++++++++++ Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsp | 100 +++++++++++ Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsw | 29 ++++ Bachelor/Prog1/Prakt4/prg1p4_3/main.cpp | 102 +++++++++++ Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsp | 100 +++++++++++ Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsw | 29 ++++ Bachelor/Prog1/Prakt4/prg1p4_4/main.cpp | 122 ++++++++++++++ Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsp | 100 +++++++++++ Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsw | 29 ++++ 13 files changed, 1264 insertions(+) create mode 100644 Bachelor/Prog1/Prakt4/index.htm create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_1/main.cpp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsw create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_2/main.cpp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsw create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_3/main.cpp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsw create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_4/main.cpp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsp create mode 100644 Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsw (limited to 'Bachelor/Prog1/Prakt4') diff --git a/Bachelor/Prog1/Prakt4/index.htm b/Bachelor/Prog1/Prakt4/index.htm new file mode 100644 index 0000000..6989787 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/index.htm @@ -0,0 +1,253 @@ + + + + + + +Praktikum 4 + + + + +  + + + + + + + + + + +
 
FH Darmstadt  +
FB Informatik  +
Prof.Dr. H.P.Weber
+
Programmieren I  +
Praktikum
+
+
4
+
+ +
+ + + + +
Ziel: + Sie sollen die Verwendung von Arrays, Funktionen und Rekursion üben sowie + grundlegende Sortierverfahren kennen.  +
+ +
+ + + + +
+

+1    Analyse von Craps

+ +
    +
  • +Schreiben Sie ein Programm, das 1000000-mal das Würfelspiel Craps simuliert. +Ihr Programm soll folgende Fragen beantworten:
  • +
      +
    • +Wieviele Spiele werden gewonnen beim ersten Wurf, beim zweiten Wurf, +...(usw)..., beim 20. +Wurf und nach dem 20.Wurf?
    • + +
    • +Wieviele Spiele werden verloren beim ersten Wurf, beim zweiten Wurf, +...(usw)..., beim 20. +Wurf und nach dem 20.Wurf?
    • + +
    • +Wie groß sind die Chancen Craps zu gewinnen? (Sie sollten herausfinden, dass +Craps eines der fairsten in Spielkasinos gespielten Spiele ist. Was bedeutet +diese Aussage?)
    • + +
    • +Wie lang dauert ein Craps-Spiel im Durchschnitt?
    • + +
    • +Erhöhen sich die Gewinnchancen mit der Dauer eines Craps-Spieles?
    • +
    +
+
+ +
+ + + + +
+

+2    Sortierverfahren 'Direkte Auswahl (Selection Sort)' und +'Direktes Einfügen +(Insertion Sort)' 

+ +
    +
  • +Das Sortierverfahren 'Direkte Auswahl' durchsucht ein unsortiertes Array nach dem kleinsten +Element in dem Array. Danach wird das kleinste Element mit dem ersten Element +des Arrays ausgetauscht. Dieser Prozess wird für das unsortierte Teilarray, das mit dem +zweiten Element des Arrays beginnt, wiederholt. Jeder derartige Durchlauf durch +das Array bewirkt, dass ein weiteres Element an die Stelle kommt, an die es +gehört. Sobald das unsortierte Teilarray nur noch ein Element enthält, ist das Array +sortiert.
  • + +
  • +Schreiben Sie eine iterative Funktion selectionSort +für diesen Algorithmus.
  • + +
  • +Das Sortierverfahren 'Direktes Einfügen' fasst das erste Element eines +unsortierten Arrays als bereits sortiertes Teilarray auf, in das sukzessive die +weiteren Elemente eingefügt werden. Bei diesem Einfügeprozess muss das immer +größer werdende Teilarray zu jedem Zeitpunkt sortiert bleiben. Jedes weitere +Element muss also an die richtige Stelle eingefügt werden. Damit dies möglich +ist, müssen alle Elemente, die größer sind als das Einfügeelement, jeweils +um einen Platz verschoben werden. Sobald das sortierte Teilarray alle Elemente enthält, ist das Array +sortiert.
  • + +
  • +Schreiben Sie eine iterative Funktion insertionSort +für diesen Algorithmus.
  • + +
+
+ +
+ + + + +
+

3    Verteilung der Augenzahlen bei Würfen mit vielen +Würfeln 

+ +
    +
  • +Entwickeln Sie ein Programm, das es dem Benutzer ermöglicht, Würfe mit mehreren Würfeln zu simulieren. Das Simulationsergebnis +ist dann eine Gesamt-Augenzahl, die sich als Summe der Augenzahlen der +einzelnen Würfel ergibt. Werden viele dieser Würfe mit mehreren +Würfeln durchgeführt, ergibt sich eine Häufigkeitsverteilung +für die Gesamt-Augenzahlen. Diese Häufigkeitsverteilung soll +im Konsolenfenster in Form einer Tabelle und als einfache Übersichtsgraphik +ausgegeben werden.
  • + +
  • +Zu Beginn sollen vom Benutzer folgende Eingaben abgefragt werden:
  • + +
      +
    • +Die Zahl der Würfel, die er bei einem Wurf werfen möchte.
    • + +
    • +Die Zahl der Würfe, die er mit der gewählten Anzahl von Würfeln +durchführen möchte.
    • +
    + +
  • +Die Häufigkeitsverteilung für die erzielten Gesamt-Augenzahlen +soll auf zwei verschiedene Arten dargestellt werden:
  • + +
      +
    • +Tabellarische Darstellung als Gegenüberstellung von erzielter Augenzahl +und zugehöriger Häufigkeit. Dabei sollen sowohl die Absolutwerte +der Häufigkeit als auch normierte Werte, die sich bei Division der +Absolutwerte durch die Gesamtzahl der Würfe ergeben, ausgegeben werden.
    • + +
    • +Graphische Darstellung als ein einfaches (um 90 Grad gekipptes) Säulendiagramm +(z.B. entsprechende Anzahl von *).
    • +
    + +
  • +Strukturieren Sie Ihr Programm mit Hilfe von geeignet gewählten Funktionen +für einzelne Teilaufgaben. 
  • +
+
+ +
+ + + + +
+

4    Galton-Brett (fakultativ)

+ Entwickeln Sie ein Programm, das ein "Galton-Brett" und dessen Benutzung simuliert. Das + Simulationsergebnis soll im Konsolenfenster in Form von Zahlenkolonnen und als einfache Übersichtsgraphik ausgegeben werden. +

Funktionsprinzip des Galton-Bretts

+ + + + + +
+

Mit Hilfe eines Galton-Bretts (nach Sir Francis + Galton, 1822-1911) lassen sich wichtige Verteilungen aus der + Statistik experimentell erzeugen. Dabei laufen auf einem geneigt + aufgestellten Nagelbrett Kugeln durch die Nagelreihen. In Sammelbehältern am Fuß des Nagelbretts werden die + Kugeln aufgefangen. Sind die Nägel im Brett so angeordnet, daß + der Abstand zweier nebeneinander liegender Nägel durch den darüberliegenden + Nagel genau halbiert wird, so ist als Verteilung der Kugeln in den + Sammelbehältern die Normalverteilung (Gaußsche Glockenkurve) zu + erwarten.

+
+

+

+
+

Darstellung des Simulationsergebnisses

+

Das Ergebnis der Simulation soll durch Angabe der + Anzahl von Kugeln, die in 25 Sammelbehältern jeweils aufgefangen werden, + ausgegeben werden (Funktion textOutput). + Dabei sollen sowohl die Absolutwerte als auch normierte Werte, die sich + bei Division der Absolutwerte durch die Gesamtanzahl der Kugeln ergeben, + ausgegeben werden. Zusätzlich soll durch eine Funktion + graphicalOutput ein + einfaches (um 90 Grad gekipptes) Säulendiagramm (z.B. entsprechende + Anzahl von *) + im Konsolenfenster ausgegeben werden können. + +

+

Die Bedienung des Programms erfolgt im + Konsolenfenster durch Angabe der gewünschten Anzahl von Kugeln und der + gewünschten Darstellungsart des Ergebnisses. Wenn Sie wollen, können Sie + natürlich auch die Anzahl der Sammelbehälter nicht auf genau 25 + beschränken, sondern vom Benutzer des Programms vorgeben lassen.

+
+

Implementierungshinweis

+
+ + + + + +

Es ist Zufall, ob eine + Kugel an einem Nagel nach links oder rechts rollt. Deshalb sollen + Zufallszahlen, die die Funktion + + rand liefert, verwendet werden. Bedenken Sie, dass an jedem Nagel (d.h. auf + jeder Ebene) nur eine Entscheidung (links oder rechts) zu + treffen ist. Mit jeder Ebene, die die Kugel passiert, wird dadurch die + Menge der noch erreichbaren Sammelbehälter sukzessive eingeschränkt. + Dieses Verhalten soll in eine rekursive Funktion abgebildet werden.

+  
+
+

+ +

+
+
+ + + + \ No newline at end of file diff --git a/Bachelor/Prog1/Prakt4/prg1p4_1/main.cpp b/Bachelor/Prog1/Prakt4/prg1p4_1/main.cpp new file mode 100644 index 0000000..f9e3e90 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_1/main.cpp @@ -0,0 +1,148 @@ +// Programmieren 1, Praktikum 4, Aufgabe 1 +// Sven Eisenhauer +// 08.12.2004 +// +// file: main.cpp +// +// purpose: Play craps and analyse results +// +// +// +// + +#include + +using std::cout; +using std::endl; + +#include + +using std::setprecision; +using std::setw; + +// contains function prototypes for functions srand and rand +#include + +#include // contains prototype for function time + +int rollDice( void ); // function prototype + +int main() +{ + // enumeration constants represent game status + enum Status { CONTINUE, WON, LOST }; + + int sum; + int myPoint; + + const int maxGames=1000000; + const int maxRounds=22; + + int round=1, + sumWon=0, + sumLost=0, + wRounds=0; + + int nrLost[maxRounds]={0}, + nrWon[maxRounds]={0}; + + Status gameStatus; // can contain CONTINUE, WON or LOST + + // randomize random number generator using current time + srand( time( 0 ) ); + + for (int i=1;i<=maxGames;i++) + { + round=1; + sum = rollDice(); // first roll of the dice + + // determine game status and point based on sum of dice + switch ( sum ) { + + // win on first roll + case 7: + case 11: + gameStatus = WON; + break; + + // lose on first roll + case 2: + case 3: + case 12: + gameStatus = LOST; + break; + + // remember point + default: + gameStatus = CONTINUE; + myPoint = sum; + // cout << "Point is " << myPoint << endl; + break; // optional + + } // end switch + + // while game not complete ... + while ( gameStatus == CONTINUE ) { + sum = rollDice(); // roll dice again + round++; + + // determine game status + if ( sum == myPoint ) // win by making point + gameStatus = WON; + else + if ( sum == 7 ) // lose by rolling 7 + gameStatus = LOST; + + } // end while + + // display won or lost message + if ( gameStatus == WON ) + //cout << "Player wins" << endl; + if (round (sumWon)/maxGames)*100 << "%" << endl; + cout << "Average Game length: "<< setprecision(2) << static_cast (wRounds)/maxGames << " Rounds" << endl; + + return 0; // indicates successful termination + +} // end main + +// roll dice, calculate sum and display results +int rollDice( void ) +{ + int die1; + int die2; + int workSum; + + die1 = 1 + rand() % 6; // pick random die1 value + die2 = 1 + rand() % 6; // pick random die2 value + workSum = die1 + die2; // sum die1 and die2 + + // display results of this roll + // cout << "Player rolled " << die1 << " + " << die2 + // << " = " << workSum << endl; + + return workSum; // return sum of dice + +} // end function rollDice diff --git a/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsp b/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsp new file mode 100644 index 0000000..d954bb5 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsp @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="prg1p4_1" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=prg1p4_1 - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_1.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_1.mak" CFG="prg1p4_1 - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "prg1p4_1 - Win32 Release" (basierend auf "Win32 (x86) Console Application") +!MESSAGE "prg1p4_1 - Win32 Debug" (basierend auf "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "prg1p4_1 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "prg1p4_1 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "prg1p4_1 - Win32 Release" +# Name "prg1p4_1 - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsw b/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsw new file mode 100644 index 0000000..4b8cd6b --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_1/prg1p4_1.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "prg1p4_1"=.\prg1p4_1.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/Bachelor/Prog1/Prakt4/prg1p4_2/main.cpp b/Bachelor/Prog1/Prakt4/prg1p4_2/main.cpp new file mode 100644 index 0000000..6c30139 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_2/main.cpp @@ -0,0 +1,123 @@ +// Programmieren 1, Praktikum 4, Aufgabe 2 +// Sven Eisenhauer +// 08.12.2004 +// +// file: main.cpp +// +// purpose: Implementation of Selection Sort and Insertion Sort algorithm +// + +#include + +using std::cout; +using std::endl; + +#include + +using std::setprecision; +using std::setw; + +// contains function prototypes for functions srand and rand +#include + +#include + +void selectionSort(int[], int); +void insertionSort(int[], int); + +int main () +{ + const int arraySize=5; + int array1[arraySize],array2[arraySize]; + + srand(time(0)); + + // fill the arrays with some random stuff + for (int i=0;i= 0)) + { + // always copy the value from the array field before + // so the gap "walks" to the left, until a[i] is at the right place + // and we can put temp in it. + a[i+1]=a[i]; + i--; + } + // i+1 to compensate the last i--, because we want a[i] before the last i-- + a[i+1]=temp; + } + + } +} // end function insertionSort \ No newline at end of file diff --git a/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsp b/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsp new file mode 100644 index 0000000..954904e --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsp @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="prg1p4_2" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=prg1p4_2 - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_2.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_2.mak" CFG="prg1p4_2 - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "prg1p4_2 - Win32 Release" (basierend auf "Win32 (x86) Console Application") +!MESSAGE "prg1p4_2 - Win32 Debug" (basierend auf "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "prg1p4_2 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "prg1p4_2 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "prg1p4_2 - Win32 Release" +# Name "prg1p4_2 - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsw b/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsw new file mode 100644 index 0000000..fe3d2a4 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_2/prg1p4_2.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "prg1p4_2"=.\prg1p4_2.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/Bachelor/Prog1/Prakt4/prg1p4_3/main.cpp b/Bachelor/Prog1/Prakt4/prg1p4_3/main.cpp new file mode 100644 index 0000000..fb7e564 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_3/main.cpp @@ -0,0 +1,102 @@ +// Programmieren 1, Praktikum 4, Aufgabe 3 +// Sven Eisenhauer +// 14.12.2004 +// +// file: main.cpp +// +// purpose: Analyse multiple rolls of multiple dice +// + +#include + +using std::cin; +using std::cout; +using std::endl; + +#include + +using std::setprecision; +using std::setw; + +// contains function prototypes for functions srand and rand +#include + +#include + +void roll(const int, const int, int[]); +void getPara(int &, int &); +void printResultTbl(const int[], const int, const int); +void printResultGrph(const int[], const int, const int); + +const int maxDice=20, + maxEyes=6, + minEyes=1; + +int main() +{ + + + int nrDice, + nrRolls; + + int result[(maxDice*maxEyes)+1]={0}; + + // initialize random number generator + srand(time(0)); + + getPara(nrDice,nrRolls); + + roll(nrDice,nrRolls,result); + + printResultTbl(result, nrDice, nrRolls); + printResultGrph(result, nrDice, nrRolls); + + return 0; +}// end main + +void getPara(int &nrDice,int &nrRolls) +{ + cout << "Please enter number of dice to roll (max. "<> nrDice; + cout << "Please enter number of rolls: "; + cin >> nrRolls; +} // end function getPara + +void roll (const int nDice, const int nrRolls, int resultArray[]) +{ + int sum; + + for (int n=1;n<=nrRolls;n++) + { + sum=0; + for (int i=1;i<=nDice;i++) + sum+=(rand()%6)+1; + ++resultArray[sum]; + } + +} // end fnction roll + +void printResultTbl(const int resArray[],const int nrDice, const int nrRolls) +{ + cout << setw(5) << "Sum" << setw(12) << "Frequency" << setw(20) << "norm. Frequency"<< endl; + + for (int n=(nrDice*minEyes);n<=(nrDice*maxEyes);n++) + { + cout << setw(5) << n << setw(12) << resArray[n] << setprecision(2)<< setw(20) << (static_cast (resArray[n]))/nrRolls << endl; + } +}// end function printResultTbl + +void printResultGrph(const int resArray[],const int nrDice, const int nrRolls) +{ + cout << endl; + + const int maxColumns=75; + + for (int n=(nrDice*minEyes);n<=(nrDice*maxEyes);n++) + { + cout << setw(2) << n << ": "; + for (int i=0;i(((static_cast (resArray[n]))/nrRolls)*maxColumns);i++) + cout<<"*"; + cout << endl; + } +}// end function printResultGrph \ No newline at end of file diff --git a/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsp b/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsp new file mode 100644 index 0000000..ba2f06a --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsp @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="prg1p4_3" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=prg1p4_3 - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_3.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_3.mak" CFG="prg1p4_3 - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "prg1p4_3 - Win32 Release" (basierend auf "Win32 (x86) Console Application") +!MESSAGE "prg1p4_3 - Win32 Debug" (basierend auf "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "prg1p4_3 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "prg1p4_3 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "prg1p4_3 - Win32 Release" +# Name "prg1p4_3 - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsw b/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsw new file mode 100644 index 0000000..b24236f --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_3/prg1p4_3.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "prg1p4_3"=.\prg1p4_3.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/Bachelor/Prog1/Prakt4/prg1p4_4/main.cpp b/Bachelor/Prog1/Prakt4/prg1p4_4/main.cpp new file mode 100644 index 0000000..8f481ff --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_4/main.cpp @@ -0,0 +1,122 @@ +// Programmieren 1, Praktikum 4, Aufgabe 4 +// Sven Eisenhauer +// 14.12.2004 +// +// file: main.cpp +// +// purpose: Simulate a Galton Board +// + +#include + +using std::cin; +using std::cout; +using std::endl; + +#include + +using std::setprecision; +using std::setw; + +// contains function prototypes for functions srand and rand +#include + +#include + +const int maxBoxes=100; +const int minBoxes=1; + +int fall(int &,int &); +void getInput(int &,int &, char &); +void textOutput(int[], const int, const int); +void graphicalOutput(int[], const int, const int); + +int main() +{ + srand(time(0)); + + int nrBalls; + int minBox,maxBox,nrBox; + int box; + int result[maxBoxes+1]={0}; + char outputMode; + + getInput(nrBalls,nrBox,outputMode); + for (int i=1;i<=nrBalls;i++) + { + minBox=minBoxes; + maxBox=nrBox; + box=fall(minBox,maxBox); + result[box]++; + } + if (outputMode=='t' || outputMode=='T') + textOutput(result,nrBalls,nrBox); + else + graphicalOutput(result,nrBalls,nrBox); + + return 0; +}// end function main + +void getInput(int& nrBa, int& nrBo, char &outpMode) +{ + cout << "Please enter number of boxes (max." << maxBoxes <<"): "; + cin>>nrBo; + cout << "Please enter number of balls: "; + cin>>nrBa; + cout << "Please enter output mode: [T/t] table, [G/g] graphical: "; + cin >> outpMode; +}// end function getInput + +int fall(int &minB, int &maxB) +{ + // if we are not over last 2 boxes + if((maxB-minB)>1) + { + if (0==rand()%2) + // ball falls to the right => we cannot reach the most left box anymore + minB++; + else + // ball falls to the left => we cannot reach the most right box anymore + maxB--; + fall(minB,maxB); + //return 0; + } + // only 2 possible boxes left... the base case + else + { + if (0==rand()%2) + // left box + return minB; + else + // right box + return maxB; + } +} + +void textOutput(int resArray[], const int balls,const int nrBox) +{ + //int sum=0; + + cout << endl << setw(10) << "Box" << setw(10) << "Balls" << setw(16) << "Norm." <(resArray[n])/balls<(((static_cast (resArray[n]))/balls)*maxColumns);i++) + cout<<"*"; + cout << endl; + + + } +}// end function graphicalOutput diff --git a/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsp b/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsp new file mode 100644 index 0000000..760be15 --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsp @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="prg1p4_4" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=prg1p4_4 - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_4.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "prg1p4_4.mak" CFG="prg1p4_4 - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "prg1p4_4 - Win32 Release" (basierend auf "Win32 (x86) Console Application") +!MESSAGE "prg1p4_4 - Win32 Debug" (basierend auf "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "prg1p4_4 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "prg1p4_4 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "prg1p4_4 - Win32 Release" +# Name "prg1p4_4 - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsw b/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsw new file mode 100644 index 0000000..85399da --- /dev/null +++ b/Bachelor/Prog1/Prakt4/prg1p4_4/prg1p4_4.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "prg1p4_4"=.\prg1p4_4.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + -- cgit v1.2.3