<sub class="descriptionSection">19-09-2024 08:26:am // #C // [[Programmierung]]</sub> ____ ### Nummern C++ hat diese Nummern Datentypen: ```cpp const int Integer = 10000 const int64_t bigInteger = const float Float = 10.002 const double Double = 10.002 // Mehr, aber ich bin zu faul sie aufzuschreiben //C++ hat halt Nummern mit Memory management ``` > [!important] Size_T > Integer sind von system zu system unterschiedlich lang. Deswegen sollte man statt `int` `size_t` nehmen ### Strings C++ hat diese String Datentypen: ```cpp const string String = "Hello World!" const char Char = '7' ``` ### Array + typing Syntax ```cpp //Array aus Integern int arr[] = {6, 5, 4, 3, 2, 1, 7}; //Array aus Strings string arr[] = {"String1", "String2"} //Fixed Length Array int arr[2] = {2,3} ``` ## [[Hashmaps]] Siehe Verlinkten Artikel