Not been able to insert data in binary tree using pre order form
you have taken check and check1 as bool but actually they are given in form of strings.
they are consider to be bool only if 0 and 1 are given instead of “true” and “false”.
i modified your code it is working fine now please see.
i hope you understand