Quote Originally Posted by Sebastiani View Post
Are you compiling this with a C or C++ compiler? If the latter, it's because C++ doesn't allow implicit casts...
I'm unsure to be honest. I'm working on the terminal that comes with ubuntu and I'm using gcc with no flags to compile the file.

Quote Originally Posted by Sebastiani View Post
You don't need it because it's complete nonsense. Consider this: sizeof(strlen(s)+1) == sizeof(0).

****
EDIT: Post your current code. The error message could be related to the typedef...
My current code isn't the issue (at least it shouldn't be). I'm just trying to figure out how I would insert the string s into an array of strings messages[] so that I can continue with my assignment.

In my assignment, I have a test file that has the messages array and a string. It passes messages and the string into a function. In that function, I determine what the round is in the game that's being played, and so I need to insert the string into messages[round] so that I can refer back to it in the future.