Search:

Type: Posts; User: johnpr

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,995

    The reason I wanted to including this was because...

    The reason I wanted to including this was because if I do enter too many characters the program just throw's me out to the default error code at the end. Wanted to be aware that I had made a mistake...
  2. Replies
    7
    Views
    1,995

    Heres the complete program. It does work how I...

    Heres the complete program. It does work how I need it to with gets, just wanted to address the buffer overflow issue (Have kept array very small to make it easier to test)




    #include<stdio.h>...
  3. Replies
    7
    Views
    1,995

    Ok, I have removed the variable from the case, it...

    Ok, I have removed the variable from the case, it was an attempt to clear the array for re-use. I have had numerous attempts to get this to display the error message but no luck, just running out of...
  4. Replies
    7
    Views
    1,995

    fgets error message

    I am using the code below as part of a bigger program to accept strings of words from the user and analyze them using several other cases. I initially used gets where the program worked as it should...
  5. Replies
    8
    Views
    1,231

    It was the txt that was missing on the end of the...

    It was the txt that was missing on the end of the path, also got fgets to work will have to go over it later to try and make sense of it. Thankyou for you help.
  6. Replies
    8
    Views
    1,231

    The file is located in the following position, is...

    The file is located in the following position, is not protected and is created by wordpad

    E:\Numbers

    Will give fgets another go
  7. Replies
    8
    Views
    1,231

    Hello Sorry should have seen the int before...

    Hello

    Sorry should have seen the int before main, begining to wonder if i'll ever get the hang of this. I have tried giving the filename up to 100 characters but still returns the same error also...
  8. Replies
    8
    Views
    1,231

    Porblems getting a program to find a file

    Hi all

    I am in the initial stages of writing a program to perform mathematical tasks from digits placed in a file, namley notepad. The program keeps returning "No such directory" when I enter a...
  9. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    Ok that kind of makes sense will give it a go and...

    Ok that kind of makes sense will give it a go and let you know, thanks for your help.
  10. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    I did wonder why it went funny when a character...

    I did wonder why it went funny when a character was entered, thanks. I have made the change but it now asks for the word to be entered between each option is there a way to get it to hold on to the...
  11. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    Would it be ok to ask how to loop this program so...

    Would it be ok to ask how to loop this program so that the user doesnt have to exit each time to enter a new word i have tried both adding an extra case and a do while loop but nether seem to want to...
  12. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    That works perfectly, cant thank you enough.:)

    That works perfectly, cant thank you enough.:)
  13. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    My apologies very new to this, how do I...

    My apologies very new to this, how do I initialize them do you have an example:redface::confused:
  14. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    Thank you for such a quick reply. If i choose any...

    Thank you for such a quick reply. If i choose any of the cases more than once it adds the result to the previous so there may be a bigger problem than i first thought, Should i move all of the...
  15. Thread: program issues

    by johnpr
    Replies
    13
    Views
    1,114

    program issues

    Hello

    I am trying to create a program for analyzing user input words and have come up against a problem with the results returned.

    The program starts by asking the user for a character string...
Results 1 to 15 of 15