#C++ error solution help

7 messages · Page 1 of 1 (latest)

peak ridge
#

int processGuess(char* word, const char* targetWord, char guess){}
this is my function

when I call the function in the main like this
int processGuess(word, targetWord, guess);
it gives me a error of

error: excess elements in scalar initializer
int processGuess(word, targetWord, guess);
^

I dont know what the error means, and I think the type of the input is same. If you need more info, pls dm me. I need to get this done soon...

hallow egretBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

half notch
#

@peak ridge Send more info

#

Here, not in dms

#

Oh wait, no extra info needed

#

int processGuess(word, targetWord, guess); why did you write int? Now this is a declaration not a function call

hallow egretBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.