Don't put so many comments at the end of a line. It just makes code harder to edit or reformat. Put them before the line in question. Also, instead of multiplexing comments and code, prefer writing a single block of comment for a whole block of code. That improves readability. Normally I don't complain about style, but this was just too much.
And don't mix tabs and spaces. Use one or the other, but using both can generate confusion in certain circumstances.
{ //
== completely useless comment. If someone doesn't know what braces do, they shouldn't be reading this.
Between line 18 and line 41, reader is not initialized, so the if is not valid.
Lines 77-79: Merge the three ifs into one:
if (converter != notEnc && isdigit (converter) && col2 < 19)
Your if for soundex() can be made faster:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
switch (reader){
case 'P':
case 'B':
case 'F':
case 'V':
reader='1';
return;
case 'C':
case 'S':
case 'Q':
case 'K':
case 'G':
case 'J':
case 'X':
case 'Z':
reader='2';
return;
case 'M':
case 'N':
reader='5';
return;
case 'D':
case 'T':
reader='3';
return;
case 'L':
reader='4';
return;
case 'R':
reader='6';
}
|
That's all I can find for now.