Code: Select all
void eloszka(char *elo) { }
...
eloszka("ziom");
which can be treated with casting or
Code: Select all
void eloszka(const char elo[]) { }
eloszka("ziom");
that "const" part is rather straight-forward: the string messages should not be changed as they're constants not buffers for computation. but why char[] like a table? tables and ptrs in C are rather related, isn't it so in C++ as well?