Search:

Type: Posts; User: jh294

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,829

    Comparing strings?

    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>
  2. Replies
    1
    Views
    960

    Deleteing threads

    I am just wondering how I can delete the threads I posted?
    I think I should delete them..
  3. Replies
    3
    Views
    870

    Sorry about that. Here is my code: FILE...

    Sorry about that. Here is my code:



    FILE *word_open;

    word_open = fopen(argv[2], "r");

    int W, w;
  4. Replies
    3
    Views
    870

    Help! Printing string from a file

    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...
  5. Replies
    8
    Views
    1,725

    I see that the grid now goes into array[x] one by...

    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...
  6. Replies
    8
    Views
    1,725

    Hm, I am not sure what you mean by "substring."...

    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...
  7. Replies
    8
    Views
    1,725

    Yes, convert characters into a string then check...

    Yes, convert characters into a string then check if it is equal to the word string.
  8. Replies
    8
    Views
    1,725

    Hm, let's say there's a string like: ...

    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...
  9. Replies
    8
    Views
    1,725

    Making character to string?

    char grid[3][3][4] = {{{'a', 'b', 'c'},
    {'d', 'e', 'f'},
    {'g', 'h', 'i'}},
    {{'j', 'k', 'l'},
    {'m',...
  10. Thread: 3D wordsearch.

    by jh294
    Replies
    12
    Views
    3,023

    No~ it can only be a straight line. The starting...

    No~ it can only be a straight line.
    The starting point and the end point are given too.
  11. Thread: 3D wordsearch.

    by jh294
    Replies
    12
    Views
    3,023

    No, the length of the word can be different. It...

    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..
  12. Replies
    5
    Views
    1,573

    Help! Using dynamic allocation and malloc

    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...
  13. Thread: 3D wordsearch.

    by jh294
    Replies
    12
    Views
    3,023

    3D wordsearch.

    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...
Results 1 to 13 of 18