int instead of char
implement basic function,but answer is incorrect