-
Bad code examples
Just searching in the C Directory section of cprogramming for some good links and I found this one:
C Programs for simple and advanced topics
I think this link should me removed from the cprogramming site because of the bad progrogramming examples.
Code:
#include <stdio.h>
#include <conio.h>
#include <string.h>
main()
{
char word1[25];
char word2[25];
clrscr();
printf("\n First word : ");
gets(word1);
fflush(stdin);
...
/* und so weiter, and so forth */
...
getch();
}
Maybe there is a MOD who can check all these links and remove the bad ones...
-
The directory is open to allow people to post their sites and links. I don't think censoring it would be true to it's aim. There is some undoutably bad code in there, but search google and you will find bad code as well.
To make it "acceptable" one would have to take the submisssions and inspect them before adding them, that would take a long time, AND, it would only check out what was at the link at the time the submission was made.
Routinely going through all the links would be totally impractical.
We could remove links we considered to be bad, but they could be put back there the next day.
There is a link on the directory home page to "selected links".
The directory is really under the "caveat emptor" classification.