个人总结的C语言环境下的集中查表的方法。 void free_test(int input) { int output; //单片机查表法 //第一种:固定值查表 if(input >= 20) { output = 0; } else