switch文で文字を比較することは出来ませんか? 例えば… int main(void){ char buf[5]; buf = 'b'; switch(buf){ case 'a': ・ ・ ・ break; case 'b': ・ ・ ・ break; }
↧