I need to send the variable (double) into the function as a char*
tried this:Code:void changecolor(char* word, int color){ textcolor(color); //changes text to the color given through the argument cprintf("%s", word); //outputs the string in the given color textcolor(LIGHTGRAY); //change color back to the default light gray } //end void changecolor
monthly_interest is a double?? why? what did I go wrong? thanks!Code:char* mon; mon = (char)monthly_interest; changecolor(mon, color);