Search:

Type: Posts; User: cherryduck

Search: Search took 0.00 seconds.

  1. Cheers for all the help, it's greatly...

    Cheers for all the help, it's greatly appreciated! And your avatar really confused me...
  2. Still getting nowhere I'm afraid :( I'll post all...

    Still getting nowhere I'm afraid :( I'll post all my code as it is. There are several other issues that need fixing as well if you're feeling particularly helpful :p

    Also, I'm supposed to be...
  3. Hmm, thanks for the info but with those changes...

    Hmm, thanks for the info but with those changes applied it doesn't allow me to even enter a filename, it jumps straight to printing out a load of random characters in the "Filename is" printf...
  4. Renaming a file with a variable as the input name

    Hi all, I'm trying to rename a file, based on what the user wants to save it to. The file is called simply "temp", and is deleted when the program exits, but if the user wants to save the progress...
  5. My latest attempt: void buildDict() {...

    My latest attempt:


    void buildDict()
    {
    FILE *dictFile;
    char dictArray[100];
    int c = 0;
    int i = 0;
  6. I'm reading in every word because I then need to...

    I'm reading in every word because I then need to be able to use the list of words to choose a random word to be guessed. I'm not sure if I can randomly choose a word directly from the input file...
  7. I decided to try a different approach, and voila...

    I decided to try a different approach, and voila it seems to be working! To an extent...


    void buildDict()
    {
    FILE *dictFile;
    char dictArray[100];
    int c = 0;
    int i = 0, count = 0,...
  8. Thank you very much for the reply and the...

    Thank you very much for the reply and the assistance...after code corrections the program now compiles without error, but runs in an infinite loop.

    It now prints the welcome and the other...
  9. Okay, well I've changed it to int c = 0; and it...

    Okay, well I've changed it to int c = 0; and it works exactly the same as before, with the same error. Still having issues with my buildDict function :(
  10. fgetc is made for char's as far as I'm aware? And...

    fgetc is made for char's as far as I'm aware? And I only use fgetc in the dictAtrb function, which is not where I am having my issues. It quite happily reads through the file and counts the number of...
  11. Real problems reading from a text file into an array

    Hello all, firstly I'm happy to join this forum, secondly, I need some help. I'm trying to write a hangman game in c but I cannot for the life of me get my array filled properly. Here is the code so...
Results 1 to 11 of 11