Hi guys, im new to these forums and would like some help with two problems im having in my program to make crossword
The crossword requires me to read 5 inputs in one line.
word row column direction clue
Problem 1- input
I wish to getchar the first word
while((answerInput[count][i++]=getchar())!=' ' && i<SIZE);
answerInput[count][i]='\0';
/*TO SCAN FOR THE WORD, HOW TO TERMINATE AT SPACE..THIS INCLUDES SPACE*/
Problem 2 - equating arrays
Im having trouble storing the word 2d array into the board 2d array
int i;
int j;
int rowInputInt = (int)rowInput[count];
if (direction[count]=='d')
{
j=columnInput[count];
for(i=rowInputInt;i<rowInputInt+strlen(answerInput[count]);i++)
{
board[i][j]=answerInput[count][i];
}
}
/*This not storing into array...so when i print the board
nothing happens at moment*/
Can you guys please tell me how to fix this. Im pretty new to C.