It makes no sense. Newer, better tech is free and easier to use. The only reason I can think of that schools don't use free, better, easier tools is that the instructors have been teaching the identical course for thirty years and don't want to have to rewrite their notes.
In some cases, it is, or at least that is what I understand; from what I have heard, the university systems of India and Pakistan, in particular, mandate that Turbo C++ be taught as the only programming system, and base all their educational and testing requirements on it. No other language is permitted in their coursework, except assembly, and no other compilers or editors are to be used either. I have been told that efforts to update the curriculum have been made over the years but have been dismissed out of hand by the educational establishment as unnecessary - they see it as making changes for the sake of change, and consider anything less than 25 years old as a temporary fad.
I am not certain if this is the case in the Phillipines, but it may well be given the number of students from there who are taught in this manner.
The situation strikes me as very much like that which Feynman noted about physics teaching in Brazil in the 1950s - the focus is entirely on testing out of the program, and no real understanding is being imparted or even attempted to be imparted. The sheer number of students of computer science in India in particular means that a fair number of talented programmers do come out of their system, but it seems to be in spite of the system than because of it - much like in the US, though for the opposite set of reasons. Computer science is hardly taught (successfully) in the US at all, but (to paraphrase Feynman) there is no computer science being taught in India - there are a lot of courses and entire schools for the subject, but actual comprehension is entirely missing! The result is that its entirely by chance that anyone of actual ability comes out of either system.
#include<cstdlib> //contains function prototype for rand
using namespace std;
//example for loop 20 times
Not exactly; as was explained above, in the old Borland C++ compilers, there was a macro actually called randomize() that was basically a shortcut for both initializing the randomizer and returning a random value. While I don't know the actual implementation, I'm guessing it was something along the lines of
#define randomize(n) srand(time(NULL)); n = rand();
If anyone could give more details, it would be... oh, who am I kidding? It wouldn't be worth much of anything to know exactly, since it is basically a dead issue for anyone using a standards-compliant compiler and library.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...