This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Complement of Char

Is any direct function is available for the complement of the char variable

Parents
  • Are you sure the OP meant complement and not compliment? Complimenting a charcter would change the whole dynamic of the function and might make a lot more sense. For example:

    char *GetComplimentOfAChar (char c)
    {
    if (c < 0)
      return ("You look very pretty today.");
    
    if (c < 64)
      return ("My, you're a handsome character.");
    
    return ("My, what a big character you are.");
    }
    

    :-)

    Jon

Reply
  • Are you sure the OP meant complement and not compliment? Complimenting a charcter would change the whole dynamic of the function and might make a lot more sense. For example:

    char *GetComplimentOfAChar (char c)
    {
    if (c < 0)
      return ("You look very pretty today.");
    
    if (c < 64)
      return ("My, you're a handsome character.");
    
    return ("My, what a big character you are.");
    }
    

    :-)

    Jon

Children
No data