You should read a basic tutorial on C++. Line 29 is trying to fit two chars in a single char variable; line 36 probably needs to use operator== instead of operator= (notice how it is two equal signs, not one); lines 38 and 44 call the functions but specify no arguments.