Linked by Owen Anderson on Mon 19th Apr 2004 05:43 UTC
For years the development scene has been dominated by the C family of languages, primarily C itself and its immediate successor C++. Recent years have given rise to other C-descendents, however, such as Sun's Java and Microsoft's C#.
Permalink for comment
To read all comments associated with this story, please click here.
I was a big standoff on C++, until I started using it more. Now I love the simplicity of cout/cin and so forth. Although, it is very nice, I find myself using my old standby getch() a lot. It's great for just pausing and waiting for a user to continue on with the program.
But,
cin >> age >> sex >> location;
is way cleaner than
scanf(%i%c%s",&age, &sex, &location);
Of course neither way is really the best since neither does type checking or any other sort of bad-data checking, but hey it's a simple example.
I was a big standoff on C++, until I started using it more. Now I love the simplicity of cout/cin and so forth. Although, it is very nice, I find myself using my old standby getch() a lot. It's great for just pausing and waiting for a user to continue on with the program.
But,
cin >> age >> sex >> location;
is way cleaner than
scanf(%i%c%s",&age, &sex, &location);
Of course neither way is really the best since neither does type checking or any other sort of bad-data checking, but hey it's a simple example.