Ostronomos
Well-Known Member
I recently heard the latest version of C++ is known as C++20 to mark the year of its birth.
I have a huge text on C++11 and have been studying it for the last 9 months so you can imagine my surprise and frustration when I heard that a newer version was created. Albeit the C++11 version still has a standard library.
I am absolutely thrilled to announce that I have begun the chapter on arrays. They are built-in data structures that contain a fixed number of elements (hence the term "container") similar to vectors. Also, like vectors you can use them to access objects. They are compound types. Unlike vectors you cannot add elements to them (hence the term "fixed") and thus they offer better run-time performance at the cost of flexibility. Whereas vectors grow dynamically.
Arrays are default initialized by the way. Meaning their element values are automatically generated. This includes those that are value initialized. I am of course referring to the remaining elements when their dimension exceeds the number of elements.
I am hoping to use this knowledge to create an app but am having some problems with coding. I don't know the reason behind the problem of why Microsoft Visual Studios 2022 is so limited compared to the rich and diverse range of C++ statements, expressions, functions and variables that are explained in the book C++ Primer. Can anyone help me with this somewhat vast discrepancy?
I have a huge text on C++11 and have been studying it for the last 9 months so you can imagine my surprise and frustration when I heard that a newer version was created. Albeit the C++11 version still has a standard library.
I am absolutely thrilled to announce that I have begun the chapter on arrays. They are built-in data structures that contain a fixed number of elements (hence the term "container") similar to vectors. Also, like vectors you can use them to access objects. They are compound types. Unlike vectors you cannot add elements to them (hence the term "fixed") and thus they offer better run-time performance at the cost of flexibility. Whereas vectors grow dynamically.
Arrays are default initialized by the way. Meaning their element values are automatically generated. This includes those that are value initialized. I am of course referring to the remaining elements when their dimension exceeds the number of elements.
I am hoping to use this knowledge to create an app but am having some problems with coding. I don't know the reason behind the problem of why Microsoft Visual Studios 2022 is so limited compared to the rich and diverse range of C++ statements, expressions, functions and variables that are explained in the book C++ Primer. Can anyone help me with this somewhat vast discrepancy?