I agree that conio.h and getch() and the like are ancient zombie cruft... but I can't think of many DOS/Win32 compilers that don't have it.
I used to think that Borland invented it, but I just recently learned that it was invented by
Microsoft. Borland just made the library go straight to the hardware (as a default option) instead of through the DOS INT 21h service vectors.
But Borland did (and still does) produce a very good compiler suite. I'm not going to lynch any one just yet. That isn't to say they haven't done some dumb things too...
However, I agree 100% with
helios about how non-standard and even dangerous things are still being taught as if they were the Right Thing. Unfortunately, many places in the world are only now becoming "technologically literate", as it were.
India, for example, (not to pick on any one place --there is nothing wrong with India) is now supporting a lot of IT infrastructure. They are only right now experiencing the IT revolution that we in the USA ans UK and Spain and the like saw during the mid to late 80's. As a result, Indian kids go to the University and learn to program using... Borland C++ 4.01 or some other ancient relic --something that doesn't cost a gazillion US dollars to use, has existed for decades, and that a large percentage of professors are actually qualified to teach. The closer you close the gap to the "modern age", the fewer people you will meet in India who have real, industrial experience with modern language standards --either by their own past jobs, or by their own schooling, or by their own independent study.
(AFAIK, India currently has the fastest-growing IT infrastructure around the world. There are a lot of places a decade behind India. Those of us in the West [North America and Western Europe] have a relatively biased view because we take certain knowlege or practice for granted --whereas those who are just now becoming computer-literate really are trying to play catch-up in a giant's stadium.)
1 2 3 4 5 6 7 8 9 10
|
#include <conio.h>
#include <iostream.h>
void main()
{
clrscr();
cout << "Press a key now";
getch();
cout << "Thank you!";
}
|
There are so many things wrong with that... but it looks fine to many people simply because they don't know any better. (Yet)
In English the word is pronounced with vowels
ah and
ai and
oh, so it is less potentially crude.
console
I/
O.
:-\