i understand what you are pointing to..but at very start , main intention is to develop logic...and make you understand OOPS. make a fresher understand data types..objects,,inheritance...etc etc..
now when you develop real life apps , you dont need C (may be required for low level prog) ..you use tools like VS 2010 , SQL etc.
but thats too far...1st learn the basics.....classes,inheritance,polymorphism,
Logic with what? Antiquated Turbo C++ code? Putting student into a false sense of security that they have learnt a Industrial level language? I am sorry but that is epic fail.
Let's see what will 95%+ Indian students will write:
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
int x, y, sum;
char name[100];
clrscr();
printf("Enter number 1: ");
scanf("%d", &x);
printf("Enter number 2: ");
scanf("%d", &y);
sum = x + y;
printf("Enter your name: ");
gets(name);
printf("The sum is %d.\nThe Name is %s.", sum, name);
getch();
}
Now this program fails in several counts:
1) void main
2) clrscr
3) getch
4) gets
5) scanf without any care of type of inputs, fails terribly
Details:
Things to Avoid in C/C++ -- gets() , Part 1 - GIDNetwork
That's just a tip of the iceberg. Programming malpractices are very easy to learn for a beginner in C unless he is really guided very well and works hard at it as well. Don't get me started with pointers, an important part of the language.
You talk of polymorphism, inheritence, OOPS, none of them are C traits anyway.
You want to develop logic? Why would you like to do that with a language where half the code is spent on memory management and there are many pitfalls and dangers with undefined behaviours which you have to be very careful to avoid. WHy not use a higher level language which abstracts the learner from these details and just let the learner code for the logic or developing the program.
You ask colleges are fools. I say they are indeed. Most of their faculty are Incompetent, and an insult to computer science. I don't like to stereotype but it's true. Of course there are good, quality teachers as well but that's a rare specie.