Sorry for the second post in a short amount of time, but for some reason, I'm getting this error: invalid conversion from 'const char*' to 'char' [-fpermissive]. I've looked into this problem and couldn't find any suitable solutions. This is probably a stupid question, but I'm just a beginner. Thanks in advance!
void UpdateTxt(char input)
{/*code*/}
//in int main
if(kbhit())
{
char keyHit = getch();
UpdateTxt(keyHit);
}
elseif(GetAsyncKeyState(VK_SPACE))
{
char space = " ";//error on this line
UpdateTxt(space);
}
elseif(GetAsyncKeyState(VK_ACCEPT))
{
char enter = "\n";//and this line
UpdateTxt("\n");
}