Hi, i am new to c++ programming , i have to write a program for homework. It has to include a function with a prototype int max_min9(int n). n is a three-digit number. The function`s aim is to return the value of mx - mn. mx is the largest integer that can be formed using
the digits of n and mn is the smallest integer that can be formed using the digits of n. I think I am having problems with the conversion from string to int. Here is my code. Where is my mistake?