Hello,
I have a question about comparing strings.
First, I will post the code I've written:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Type: Posts; User: jh294
Hello,
I have a question about comparing strings.
First, I will post the code I've written:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
I am just wondering how I can delete the threads I posted?
I think I should delete them..
Sorry about that. Here is my code:
FILE *word_open;
word_open = fopen(argv[2], "r");
int W, w;
Hello, I am trying to print a string from a text file. So what I have in the text file is for example,
ice
raw
tub
I know how to open up the file and store it as a string, but how can I...
I see that the grid now goes into array[x] one by one, but what does null terminator do? Is it for the empty space at the end of the string?
Also, how would I do diagonal? That was actually the...
Hm, I am not sure what you mean by "substring." So, what I am trying to do is, I assign the starting point and end point of the grid, so in this case would be, [0][0][0] and [0][2][2].
so I have...
Yes, convert characters into a string then check if it is equal to the word string.
Hm, let's say there's a string like:
char word[] = "aei";
I want to make the characters into a string like I said, then check to see if it equals to the "aei" string. Hope you...
char grid[3][3][4] = {{{'a', 'b', 'c'},
{'d', 'e', 'f'},
{'g', 'h', 'i'}},
{{'j', 'k', 'l'},
{'m',...
No~ it can only be a straight line.
The starting point and the end point are given too.
No, the length of the word can be different. It can even be a sing letter 'a'.
Yes, I also have to search in diagonals as well..
I have to use dynamic memory allocation to return a newly-created array from a
function. The return value cannot be a “dynamic array” (created by an ordinary
array declaration), because such an...
Hi, I am trying to write a code to make run 3D wordseach. Basically what I have to do is, I have to read a file that has a grid of wordsearch in it. For example,
3 3 3
abc
def
ghi
jkl
mno...