Unknown error with for loop & printLine C4002 & C2143

Hi there,
With the For Loop and logical operators to show the words >=4 and <=8,I have the same code as shown but keep getting errors:

\BullCowCartridge.cpp(15) :error C4002: too many arguments for function-like macro invocation ‘TEXT’
\BullCowCartridge.cpp(15) : error C2143: syntax error: missing ‘)’ before ‘;’

errorC4002
I tried to figure out by elimination why it wouldn’t work and maybe just using the <= 4 but it wouldn’t compile for either.

My code, as can be seen, is the same as the video.
Any ideas what it could be?
Thanks,
Sinead

You’re missing a )

TEXT("%s", *Words[j]);
//      ^^ missing )

Hey, thanks a million! It was driving me crazy :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms