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/Prog2/Prakt5/Aufg1/.cdtbuild | 25 +++++++ Bachelor/Prog2/Prakt5/Aufg1/.cdtproject | 18 +++++ Bachelor/Prog2/Prakt5/Aufg1/.project | 19 +++++ Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsp | 100 ++++++++++++++++++++++++++ Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsw | 29 ++++++++ Bachelor/Prog2/Prakt5/Aufg1/Aufg1.ncb | Bin 0 -> 33792 bytes Bachelor/Prog2/Prakt5/Aufg1/Aufg1.opt | Bin 0 -> 48640 bytes Bachelor/Prog2/Prakt5/Aufg1/Aufg1.plg | 44 ++++++++++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.exe | Bin 0 -> 666845 bytes Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.pch | Bin 0 -> 2015772 bytes Bachelor/Prog2/Prakt5/Aufg1/Debug/Words.txt | 25 +++++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/main.d | 5 ++ Bachelor/Prog2/Prakt5/Aufg1/Debug/makefile | 30 ++++++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/objects.mk | 13 ++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/sources.mk | 16 +++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/subdir.mk | 44 ++++++++++++ Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.idb | Bin 0 -> 74752 bytes Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.pdb | Bin 0 -> 86016 bytes Bachelor/Prog2/Prakt5/Aufg1/Words.txt | 25 +++++++ Bachelor/Prog2/Prakt5/Aufg1/main.cpp | 101 +++++++++++++++++++++++++++ 20 files changed, 494 insertions(+) create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/.cdtbuild create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/.cdtproject create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/.project create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsp create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsw create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Aufg1.ncb create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Aufg1.opt create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Aufg1.plg create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.exe create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.pch create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/Words.txt create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/main.d create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/makefile create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/objects.mk create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/sources.mk create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/subdir.mk create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.idb create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.pdb create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/Words.txt create mode 100644 Bachelor/Prog2/Prakt5/Aufg1/main.cpp (limited to 'Bachelor/Prog2/Prakt5/Aufg1') diff --git a/Bachelor/Prog2/Prakt5/Aufg1/.cdtbuild b/Bachelor/Prog2/Prakt5/Aufg1/.cdtbuild new file mode 100644 index 0000000..b4ce8ad --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/.cdtbuild @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/.cdtproject b/Bachelor/Prog2/Prakt5/Aufg1/.cdtproject new file mode 100644 index 0000000..bd768a8 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/.cdtproject @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/.project b/Bachelor/Prog2/Prakt5/Aufg1/.project new file mode 100644 index 0000000..02b0148 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/.project @@ -0,0 +1,19 @@ + + + Aufg1 + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.core.ccnature + + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsp b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsp new file mode 100644 index 0000000..1051125 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsp @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="Aufg1" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=Aufg1 - 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 "Aufg1.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 "Aufg1.mak" CFG="Aufg1 - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "Aufg1 - Win32 Release" (basierend auf "Win32 (x86) Console Application") +!MESSAGE "Aufg1 - 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)" == "Aufg1 - 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)" == "Aufg1 - 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 "Aufg1 - Win32 Release" +# Name "Aufg1 - 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/Prog2/Prakt5/Aufg1/Aufg1.dsw b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.dsw new file mode 100644 index 0000000..11f6b18 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.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: "Aufg1"=.\Aufg1.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.ncb b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.ncb new file mode 100644 index 0000000..1ce0270 Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.ncb differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.opt b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.opt new file mode 100644 index 0000000..c1e3b51 Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.opt differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.plg b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.plg new file mode 100644 index 0000000..f63f1a5 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Aufg1.plg @@ -0,0 +1,44 @@ + + +
+

Erstellungsprotokoll

+

+--------------------Konfiguration: Aufg1 - Win32 Debug-------------------- +

+

Befehlszeilen

+Erstellen der temporären Datei "C:\DOKUME~1\SVEN~1.HOM\LOKALE~1\Temp\RSP1B.tmp" mit Inhalten +[ +/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/Aufg1.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\Studium\Prog2\Prakt5\Aufg1\main.cpp" +] +Creating command line "cl.exe @C:\DOKUME~1\SVEN~1.HOM\LOKALE~1\Temp\RSP1B.tmp" +

Ausgabefenster

+Kompilierung läuft... +main.cpp +c:\programme\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert + c:\programme\microsoft visual studio\vc98\include\map(46) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' + D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(32) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' +c:\programme\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >::const_iterator' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert + c:\programme\microsoft visual studio\vc98\include\map(46) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' + D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(32) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' +c:\programme\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >::iterator' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert + c:\programme\microsoft visual studio\vc98\include\map(46) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' + D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(32) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' +c:\programme\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Node' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert + c:\programme\microsoft visual studio\vc98\include\map(46) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' + D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(32) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' +c:\programme\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >::const_iterator' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert + c:\programme\microsoft visual studio\vc98\include\map(46) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' + D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(32) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' +D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(50) : error C2664: 'class std::basic_istream > &__thiscall std::basic_istream >::getline(char *,int)' : Konvertierung des Parameters 1 von 'class std::basic_string,class std::allocator >' in 'char *' nicht moeglich + Kein benutzerdefinierter Konvertierungsoperator verfuegbar, der diese Konvertierung durchfuehren kann, oder der Operator kann nicht aufgerufen werden +D:\Studium\Prog2\Prakt5\Aufg1\main.cpp(50) : fatal error C1903: Weiterverarbeitung nach vorhergehendem Fehler nicht moeglich; Kompilierung wird abgebrochen. +Fehler beim Ausführen von cl.exe. + + + +

Ergebnisse

+main.obj - 2 Fehler, 5 Warnung(en) +
+ + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.exe b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.exe new file mode 100644 index 0000000..ac01652 Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.exe differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.pch b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.pch new file mode 100644 index 0000000..2da9163 Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Aufg1.pch differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/Words.txt b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Words.txt new file mode 100644 index 0000000..4a408d8 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/Words.txt @@ -0,0 +1,25 @@ +blue,blau +red,rot +chance,Zufall +luminous color,Leuchtfarbe +black,schwarz +lump,Stueck +fact,Tatsache +ballot,geheime Abstimmung +meeting,Treffen +wary,vorsichtig +plea,Bitte +marauder,Pluenderer +height,Hoehe +essential,notwendig +disclaim,abstreiten +parsley,Petersilie +indefatigable,unermuedlich +combat,Kampf +broom,Besen +nugatory,belanglos +profession,Beruf +sundae,Eisbecher +riddle,Raetsel +next door,nebenan +map,Karte diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/main.d b/Bachelor/Prog2/Prakt5/Aufg1/Debug/main.d new file mode 100644 index 0000000..d2c1ccc --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/main.d @@ -0,0 +1,5 @@ +################################################################################ +# Diese Datei wurde automatisch generiert. Sie darf nicht bearbeitet werden! +################################################################################ + +main.d main.o: ../main.cpp diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/makefile b/Bachelor/Prog2/Prakt5/Aufg1/Debug/makefile new file mode 100644 index 0000000..612cc5b --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/makefile @@ -0,0 +1,30 @@ +################################################################################ +# Diese Datei wurde automatisch generiert. Sie darf nicht bearbeitet werden! +################################################################################ + +ROOT := .. + +-include $(ROOT)/makefile.init + +RM := rm -rf + +# Alle an der Erstellung beteiligten Quellen sind hier definiert. +-include sources.mk +-include $(SUBDIRS:%=%/subdir.mk) +-include objects.mk +-include $(DEPS) +-include $(ROOT)/makefile.defs + +all: Aufg1.exe + +Aufg1.exe: $(OBJS) + @echo 'Ziel wird erstellt: $@' + g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS) + @echo 'Erstellung fertig gestellt: $@' + +clean: + -$(RM) $(OBJS) $(DEPS) Aufg1.exe + +.PHONY: all clean dependents + +-include $(ROOT)/makefile.targets diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/objects.mk b/Bachelor/Prog2/Prakt5/Aufg1/Debug/objects.mk new file mode 100644 index 0000000..8bcaab0 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/objects.mk @@ -0,0 +1,13 @@ +################################################################################ +# Diese Datei wurde automatisch generiert. Sie darf nicht bearbeitet werden! +################################################################################ + +LIBS := +USER_OBJS := + + +OBJS := \ + $(C_SRCS:$(ROOT)/%.c=%.o) $(C_UPPER_SRCS:$(ROOT)/%.C=%.o) $(CC_SRCS:$(ROOT)/%.cc=%.o) $(CXX_SRCS:$(ROOT)/%.cxx=%.o) $(CPP_SRCS:$(ROOT)/%.cpp=%.o) $(S_SRCS:$(ROOT)/%.s=%.o) $(S_UPPER_SRCS:$(ROOT)/%.S=%.o) + +DEPS := \ + $(C_SRCS:$(ROOT)/%.c=%.d) $(C_UPPER_SRCS:$(ROOT)/%.C=%.d) $(CC_SRCS:$(ROOT)/%.cc=%.d) $(CXX_SRCS:$(ROOT)/%.cxx=%.d) $(CPP_SRCS:$(ROOT)/%.cpp=%.d) $(S_SRCS:$(ROOT)/%.s=%.d) $(S_UPPER_SRCS:$(ROOT)/%.S=%.d) \ No newline at end of file diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/sources.mk b/Bachelor/Prog2/Prakt5/Aufg1/Debug/sources.mk new file mode 100644 index 0000000..6f3ea65 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/sources.mk @@ -0,0 +1,16 @@ +################################################################################ +# Diese Datei wurde automatisch generiert. Sie darf nicht bearbeitet werden! +################################################################################ + +C_SRCS := +C_UPPER_SRCS := +CC_SRCS := +CXX_SRCS := +CPP_SRCS := +S_SRCS := +S_UPPER_SRCS := + +# Jedes Unterverzeichnis mit Quellendateien muss hier beschrieben werden +SUBDIRS := \ +. \ + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/subdir.mk b/Bachelor/Prog2/Prakt5/Aufg1/Debug/subdir.mk new file mode 100644 index 0000000..edf4334 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Debug/subdir.mk @@ -0,0 +1,44 @@ +################################################################################ +# Diese Datei wurde automatisch generiert. Sie darf nicht bearbeitet werden! +################################################################################ + +S_UPPER_SRCS += \ +${addprefix $(ROOT)/, \ +} + +CPP_SRCS += \ +${addprefix $(ROOT)/, \ +main.cpp \ +} + +CC_SRCS += \ +${addprefix $(ROOT)/, \ +} + +C_SRCS += \ +${addprefix $(ROOT)/, \ +} + +C_UPPER_SRCS += \ +${addprefix $(ROOT)/, \ +} + +CXX_SRCS += \ +${addprefix $(ROOT)/, \ +} + +S_SRCS += \ +${addprefix $(ROOT)/, \ +} + +# Jedes Unterverzeichnis muss Regeln für die von ihm ergänzten Erstellungsquellen angeben +%.o: $(ROOT)/%.cpp + @echo 'Datei wird erstellt: $<' + @echo g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< + @g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \ + echo -n $(@:%.o=%.d) '' > $(@:%.o=%.d) && \ + g++ -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d) + @echo 'Erstellung fertig gestellt: $<' + @echo ' ' + + diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.idb b/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.idb new file mode 100644 index 0000000..5060c09 Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.idb differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.pdb b/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.pdb new file mode 100644 index 0000000..0a5b84d Binary files /dev/null and b/Bachelor/Prog2/Prakt5/Aufg1/Debug/vc60.pdb differ diff --git a/Bachelor/Prog2/Prakt5/Aufg1/Words.txt b/Bachelor/Prog2/Prakt5/Aufg1/Words.txt new file mode 100644 index 0000000..4a408d8 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/Words.txt @@ -0,0 +1,25 @@ +blue,blau +red,rot +chance,Zufall +luminous color,Leuchtfarbe +black,schwarz +lump,Stueck +fact,Tatsache +ballot,geheime Abstimmung +meeting,Treffen +wary,vorsichtig +plea,Bitte +marauder,Pluenderer +height,Hoehe +essential,notwendig +disclaim,abstreiten +parsley,Petersilie +indefatigable,unermuedlich +combat,Kampf +broom,Besen +nugatory,belanglos +profession,Beruf +sundae,Eisbecher +riddle,Raetsel +next door,nebenan +map,Karte diff --git a/Bachelor/Prog2/Prakt5/Aufg1/main.cpp b/Bachelor/Prog2/Prakt5/Aufg1/main.cpp new file mode 100644 index 0000000..07e2b93 --- /dev/null +++ b/Bachelor/Prog2/Prakt5/Aufg1/main.cpp @@ -0,0 +1,101 @@ +// Tree with string objects +// Author: Sven Eisenhauer +// Date: 20.06.05 + +#include +using std::cout; +using std::cerr; +using std::cin; +using std::endl; + +#include +using std::ofstream; +using std::ifstream; +using std::ios; +using std::getline; + +#include +using std::string; + +#include +using std::setw; +#include +#include + +#include +#include + +typedef std::map< string,string,std::less< string > > wordpairs; + +int main() +{ + wordpairs en_de,de_en; + wordpairs *pairPtr; + + string word; + string en; + string de; + int pos; + int end; + + ifstream inFile( "Words.txt", ios::in ); + + if( !inFile ) { + cerr << "Input-Datei konnte nicht geoeffnet werden." << endl; + exit( 1 ); + } + + while( getline(inFile,word)) { + //cout << word << endl; + pos=word.find_first_of(','); + end=word.size(); + en.assign(word,0,pos); + de.assign(word,pos+1,end); + +// cout << de << "\t " << en << endl; + en_de.insert(wordpairs::value_type(en,de)); + de_en.insert(wordpairs::value_type(de,en)); + } + inFile.close(); + cout << "Englisch - Deutsch" << endl << endl; + for (wordpairs::const_iterator it=en_de.begin(); it!=en_de.end(); + it++) + { + cout<< setw(30) << it->first << "\t "<second<< endl; + } + cout << endl << endl<< "Deutsch - Englisch"<first << "\t "<second<< endl; + } + + srand(time(0)); + int lang=(rand()%2); + if (lang==0) + pairPtr=(&en_de); + else + pairPtr=(&de_en); + int posi=(rand()%(pairPtr->size())); + wordpairs::const_iterator it3=(pairPtr->begin()); + int counter=0; + int stop=0; + cout << endl << endl; + string eingabe; + while ( it3!=(pairPtr->end()) && stop==0) + { + it3++; + counter++; + if(posi==counter) + { + cout << it3->first << endl; + cout <<"Ihre Uebersetzung: "; + cin>>eingabe; + cout << "Ihre Eingabe: " << eingabe << endl; + cout << "Richtig ist:" << it3->second << endl; + stop=1; + } + } + + return 0; +} -- cgit v1.2.3