Help with converting tolower string

Im a beginner c++ programer and I'm trying to use an array but cannot figure out how to get it to work

//Parameters: const string input
// Returns: string - the all-lowercase string
// Purpose: This function should be used to convert a string to a
// lowercase string. e.g. ToLowerCase("dEdEDe") returns "dedede"

here are the strings
const string FIGHTER_LINK = "Link";
const string FIGHTER_SAMUS = "Samus";
const string FIGHTER_PIKACHU = "Pikachu";
const string FIGHTER_KING_DEDEDE = "King_Dedede";
const string LOWER_LINK = "link";
const string LOWER_SAMUS = "samus";
const string LOWER_PIKACHU = "pikachu";
const string LOWER_KING_DEDEDE = "king_dedede";
This is a “prove you have been paying attention in class and reading your textbook” kind of homework question.

You will need a loop, and you will need the tolower() function (#include <cctype> .

Good luck!
Topic archived. No new replies allowed.