Search:

Type: Posts; User: countchocula

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    4,906

    Maybe if we could see the code we could help you....

    Maybe if we could see the code we could help you. Are you trying to make it work better or are you trying to make it look better?
  2. Sorry for my absence. I have had a lot of other...

    Sorry for my absence. I have had a lot of other things going on besides programming.

    For some reason I thought that converting my main function to a separate function and calling a recursion when...
  3. I see what you're driving at, but then won't I...

    I see what you're driving at, but then won't I have to hop back through a couple functions anyway to return to the top of the new "main" function.
  4. Any way to return to the top of main from a function

    Hello everyone. Sorry if this is a stupid question.

    Let's say that I have a program which consists of many different branches of functions. Is there any simple way to make a statement or set a...
  5. Replies
    13
    Views
    3,615

    I got it working. It's because I was using scanf....

    I got it working. It's because I was using scanf. I usually use fgets anyway, but I suppose I was being lazy when writing some portions of my code. I removed the scanf calls and now it works...
  6. Replies
    13
    Views
    3,615

    How can I clear the buffer or remove the '\n'? I...

    How can I clear the buffer or remove the '\n'? I have looked through the FAQ and I can't seem to find the thread explaining this.

    I know this seems like such a simple piece of code (and it is -...
  7. Replies
    13
    Views
    3,615

    Yes, I do. I understand that I'm a noob,...

    Yes, I do.


    I understand that I'm a noob, but I am trying to teach myself C with no other programming experience.

    Why is this a problem and how can I fix it? Thanks.
  8. Replies
    13
    Views
    3,615

    Any ideas why it won't work for me? I want to...

    Any ideas why it won't work for me?

    I want to use this function in a much larger program, but whenever I call the ent function it simply prints "Press enter" and then exits the function, thereby...
  9. Replies
    13
    Views
    3,615

    Is there anyone else who can try to help me? This...

    Is there anyone else who can try to help me? This is so frustrating. I must not understand what getchar() is doing, because it works for the other guy's code, but it does not work for mine when I try...
  10. Replies
    13
    Views
    3,615

    Nope still doesn't work. It just prints "Press...

    Nope still doesn't work. It just prints "Press Enter" and then terminates.
  11. Replies
    13
    Views
    3,615

    Using getchar()

    Hello I am trying to make a function that requires the user to press the enter key to continue.

    The function that I want to work looks like this:



    void ent (void)
    {
    printf("Press Enter:...
  12. Replies
    5
    Views
    1,149

    That is precisely what I did and it has worked...

    That is precisely what I did and it has worked brilliantly. Thank you for your help.
  13. Replies
    5
    Views
    1,149

    Haha brilliant! I was worried about that section....

    Haha brilliant! I was worried about that section. I will try it out and get back to you.



    EDIT:

    Wow it worked. I can't believe I overlooked that portion of code. it seems so obvious now....
  14. Replies
    5
    Views
    1,149

    Problem with nested loops in functions

    I am absolutely stumped on what I am doing wrong here. Essentially I have a function that takes a two dimensional array of chars and tries to determine if there are five "x" chars in a row. Here is...
  15. Replies
    12
    Views
    38,337

    Thanks, that is what I was trying to do before...

    Thanks, that is what I was trying to do before but I kept getting ugly outputs. :)

    I think I will simply use brackets. Thanks for the help guys.
  16. Replies
    12
    Views
    38,337

    Unfortunately I am just trying to make a console...

    Unfortunately I am just trying to make a console app. I don't have any experience with graphics. (Maybe this is what is causing my frustrations!)
  17. Replies
    12
    Views
    38,337

    This works great for simply displaying the...

    This works great for simply displaying the contents of the array in a square, however I would like to be able to do this with the gridlines around each unit.
  18. Replies
    12
    Views
    38,337

    Thanks for the help. Is DrawLine a built in...

    Thanks for the help. Is DrawLine a built in function? What do the parameters mean?
  19. Replies
    12
    Views
    38,337

    Tips for drawing a grid

    Hello, I am new to C programming and I am trying to draw a grid for a game of checkers. Each square in the grid will contain a member of a two-dimensional array.

    Every attempt at displaying a...
Results 1 to 19 of 19