Category : Files from Magazines
Archive   : CUJ9209.ZIP
Filename : 1009077A
short madaline_output(outputs, choice, A)
short A, outputs[];
char choice;
{
int i,
minus = 0,
plus = 0;
short result = -1;
/* use the AND method */
if(choice == 'a' ||
choice == 'A'){
result = 1;
for(i=0; i if(outputs[i] == -1)
result = -1;
}
/* use the OR method */
if(choice == 'o' ||
choice == 'O'){
for(i=0; i if(outputs[i] == 1)
result = 1;
}
/* use the Majority vote method */
if(choice == 'm' ||
choice == 'M'){
for(i=0; i if(outputs[i] == 1) plus++;
if(outputs[i] == -1) minus++;
}
if(plus > minus) result = 1;
}
return(result);
} /* ends madaline_output */
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/