Search:

Type: Posts; User: chauncey005

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,953

    My apologies Walt, its a 1D array. What I was...

    My apologies Walt, its a 1D array. What I was meaning to say is that I have an array of the number of random strings assigned and inside the indexes actually list the random strings themselves. I...
  2. Replies
    10
    Views
    1,953

    It is still pretty early for me, I apologize...

    It is still pretty early for me, I apologize about the english. What I meant to say is that the code fills the array with random capital letters that are already sorted alphabetically by the first...
  3. Replies
    10
    Views
    1,953

    Sorry about that guys. It feels the array with...

    Sorry about that guys. It feels the array with random characters that are already sorted alphabetically be the first character.




    char *RandomString(int length){

    int i, size;
    char...
  4. Replies
    10
    Views
    1,953

    binary search

    Does anyone know how I could search a 2D array using binary search and if so explain each part of the code for me? I would appreciate it very much. Thank you!
  5. Replies
    12
    Views
    1,752

    That works, but unfortunately we cant use...

    That works, but unfortunately we cant use strcmp() or puts()...but thanks anyways!
  6. Replies
    12
    Views
    1,752

    Thank you, I can generate the random strings and...

    Thank you, I can generate the random strings and I tried the code for the StringSort below, however, when I try to sort them I am now receiving the error: segmentation fault(coredump). Ive tried...
  7. Replies
    12
    Views
    1,752

    Good point, Walt! Thanks for showing me that...I...

    Good point, Walt! Thanks for showing me that...I wouldnt have even noticed it!
  8. Replies
    12
    Views
    1,752

    What if I wanted to put each of those strings in...

    What if I wanted to put each of those strings in dictionary order?
    i.e.
    string[1] = dog
    string[2] = dogo
    string[3] = efgjoz
    string[4] = ijs
    ...
    The below code doesnt work and I have been...
  9. Replies
    12
    Views
    1,752

    Holy $h--, it worked....Thanks a lot Dave, I've...

    Holy $h--, it worked....Thanks a lot Dave, I've been working on that for a long, long time!!!
  10. Replies
    12
    Views
    1,752

    Im using the cc compiler on UNIX system.

    Im using the cc compiler on UNIX system.
  11. Replies
    12
    Views
    1,752

    segmentation fault(coredump)

    I think that I have the definition of segmentation fault covered and why other people are receiving this error when I checked on past posts. However, I have no idea why Im getting it....can someone...
  12. Replies
    3
    Views
    1,216

    Thanks prelude! Is it possible to do this...

    Thanks prelude! Is it possible to do this instead?:




    #include <ctype.h>
    #include <limits.h>

    void RandomString ( char *string, int argc )
    /* Or in place of int argc, use int num */
  13. Replies
    3
    Views
    1,216

    command line arguments

    Will someone please help me out. I've been working on this code for 6 hours and am still lost! I am supposed to use 2 command line arguments to determine the number of strings to be used in this...
  14. Replies
    7
    Views
    3,959

    Actually, the fflush() was my teacher's idea, but...

    Actually, the fflush() was my teacher's idea, but thank you for letting me know, that just makes me doubt him that much more!
  15. Replies
    7
    Views
    3,959

    I just used the %s%s in the first printf()...

    I just used the %s%s in the first printf() statement so it would look more clear and the assignment doesnt ask specifically for pointers!
  16. Replies
    7
    Views
    3,959

    The code reads in the number of letters as well...

    The code reads in the number of letters as well as the capital letter itself, however, it doesnt create the random array or search and print. Sorry about that...Im just looking for help, not someone...
  17. Replies
    7
    Views
    3,959

    character array

    Hello all! I am hoping someone can help me with this because my professor wont get back to me(he lacks programming skills, I believe). Anyways, I am supposed to create an array with a user...
  18. Thread: pointers

    by chauncey005
    Replies
    6
    Views
    1,263

    pointers

    Hello all,
    Is there a way to move numbers in a circular motion using pointers? For example, if I wanted the numbers 12345 to shift and be 23451? Is it valid? Thank you!
  19. Replies
    2
    Views
    2,208

    Beginner needing help in C language

    I am having problems with my code. I thought it was right, but the compiler disagrees with me. My code is posted below along with the errors that I am receiving. Any help would be greatly appreciated...
Results 1 to 19 of 19