![]() You can create your own type by defining a class or struct. Some examples of types include int to store integer values, double to store floating-point values (also known as scalar data types), or the Standard Library class std::basic_string to store text. Also, every expression (including literal values) is implicitly given a type by the compiler before it is evaluated. Every variable, function argument, and function return value must have a type in order to be compiled. ![]() ![]() The concept of type is very important in C++.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |