Hellolo! I need help with some stuff in C++, wich I do not understand OR don't know how to make.
So, I'm very new to C++ and I know the basics of python, not very much tho.
So the problem I got right now is that I need data types explained. I'm watching tutorials right now by Coding Newbie and I do not quite understand about the short, int and so on. And I don't seem to figure out how to call specific funtions like in python, lets say that I create a menu and depending on wich option i pick. The IDE I use is Visual Stuido, and in there I can't seem to understand how to make a GUI. In python I only made console apps, such as controlling my Raspberry Pi based robot. That's about it, basically.
Integers (int) are data types that have a size of 32bits, meaning you can store a number that is just around as large as 4 billion negative or positive.
A shortint is usually around 16bits in size and can store a number that is just around as large as 60 000 negative or positive. short ints can also be written as short;
Data types like shortint and int are usually "signed" meaning that they support negative and positive numbers. If you want them to be "unsigned" (meaning that they don't support negative numbers, but therefore have a larger positive capacity) you have to specify it before your int/short declaration like so:
Integers (int) are data types that have a size of 32bits
Ranges from 16 to 64 bits in reality.
Only constraint on integral types: char ≤ short ≤ int ≤ long ≤ longlong
additionally char is at least 8 bit and long long is at least 64 bit.