Search:

Type: Posts; User: tigrfire

Search: Search took 0.01 seconds.

  1. I was able to get rid of the recurring letter...

    I was able to get rid of the recurring letter already chosen, it was a pretty simple mistake. I replaced my scanf with getchar and a while statement so it would read the letter and not the return,...
  2. I tried to use your idea using the malloc(255)...

    I tried to use your idea using the malloc(255) definition of *correctString since I don't know how to do it with an array (I tried something and it didn't work out ver well :P )

    Anyways, now my...
  3. Hangman Game - Rewrite (Segmentation Fault?)

    So, after finding a way better example of how to do this in a C++ format, I sort of converted it into C. The problem is, that when I run the program, I get a segmentation fault error. Trying to debug...
  4. Replies
    1
    Views
    1,366

    Hangman Game - Part 2

    I've worked a bit more on the program since a week ago, and I think
    I've made some significant progress, but there're still a few things I
    either don't understand how to do, or am doing wrong. With...
  5. Thread: Array size

    by tigrfire
    Replies
    5
    Views
    2,659

    Don't really understand pointers and I don't want...

    Don't really understand pointers and I don't want to use them in this situation unless they're a last resort, any other advice on what I could do?
  6. Thread: Array size

    by tigrfire
    Replies
    5
    Views
    2,659

    I used #define to set characters to 30, so the...

    I used #define to set characters to 30, so the msg array has a maximum size of 30, but if its less, I need the function to return the size of the array. As it is now, the function takes a string of...
  7. Thread: Array size

    by tigrfire
    Replies
    5
    Views
    2,659

    Array size

    I need the following code to return a string of character stored in
    array and also return the size of the array. I want to do it without
    using pointers and so far have the character storing working...
  8. Replies
    12
    Views
    4,227

    I dont know if you intended for me to edit other...

    I dont know if you intended for me to edit other parts of the program, but pointers are something we really haven't covered yet, so not only do I not understand them, I think it'd be better if I had...
  9. Replies
    12
    Views
    4,227

    I got a little bit of help from a guy on another...

    I got a little bit of help from a guy on another forum and have re-written my program, but am still having some difficulty. I've
    re-written most of the program as the following code shows (read...
  10. Replies
    12
    Views
    4,227

    I've only been programming about a week, so a lot...

    I've only been programming about a week, so a lot of this is really new to me. I have pretty much zero past programming experience, so not being able to use global variables after just learning them...
  11. Replies
    12
    Views
    4,227

    I've modified my code as follows but still have a...

    I've modified my code as follows but still have a few problems that need help. The first problem is that balance never changes, I know why this is, but I really don't know how to fix it.

    The...
  12. Replies
    12
    Views
    4,227

    Craps Program with Local Variables

    I'm having extremely difficult problems with getting used to not using global variables. I'm trying to write this craps game so that it only uses local variables, but I am having difficult getting...
Results 1 to 12 of 12