Can I just point out that there are other ways to create a safety-net than to use C++?
--
Mats
Type: Posts; User: matsp
Can I just point out that there are other ways to create a safety-net than to use C++?
--
Mats
Yeah, well, I think we'll just agree to disagree on this one. There are plenty of places where an array is fine.
A very clear example is a constant array - they are known size at compile-time,...
It is VALID, compilable in C and C++ - and don't tell me that you use vector for every single array that you ever need? There are cases when vector is the right solution, there are others where an...
But as mike_g says: There are many, many ways that you can screw up in C++ that won't happen in other languages:
int i;
int arr[10];
for(i = 1; i <= 10; i++) arr[i] = i;
Just as one...
I haven't got Python on this machine, but I thought the Python code to do the same as your C++ example would be about the same number of lines.
--
Mats
But if you get it wrong in Java or Python, there is (assuming we avoid the bugs in the implementation of the language) a safety-net to catch the user's errors in a way that is normally not available...
The basics: A couple of weeks or so. Fully - a few years or so (assuming you "ever" learn it all).
Note also that learning a language is generally considered the easy part - learning how to...
Almost all games, nowadays, are developed in C++.
To properly learn C++, you will also need to learn C, as 99.9% of all things you can do in C, will work equally well in C++ (of course, purist...