Below is a list of data types and their effective range.Ī structure is a way of grouping related variables together into a single construct. However as your program gets bigger, you might actually start running out of space or be looking for the fastest code and other data types may be more appropriate. The basic int data type allows you to store a value between -32768 to 32767 inclusive - typically more than enough for most purposes. In modern C++, there are a number of data types and its important that you understand the difference between them. If you have worked your way through tutorials, you would have seen variables declared using the keyword int (which is short for integer). The longer you run, the higher your score!īefore we jump (all puns intended) in to writing some code, we need to look at a few new concepts: Data Types Steven the Jumping Dinosaur is an endless runner where you jump oncoming cacti and duck under low-flying pterodactyls. The code described in these lessons can be found at
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |