here it is...
char words[100][50];
char c;
c = getchar();
strcat (words[0],c);
the error says "c" is incompatable, how do i fix this???
here it is...
char words[100][50];
char c;
c = getchar();
strcat (words[0],c);
the error says "c" is incompatable, how do i fix this???
I figured it its ok
"c" had to be an array
>"c" had to be an array
It need not be an array, it just has to be a nul terminated sequence of characters. Which means that a string literal or pointer to string literal is perfectly valid:
orCode:strcat ( words[0], "Test" );
-PreludeCode:char *p = "Test"; strcat ( words[0], p );
My best code is written with the delete key.