Search:

Type: Posts; User: parx86

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,568

    I had also thought about that, since I'm only in...

    I had also thought about that, since I'm only in chapter 3 of the book I'm in, doing lots of while() loops and such, that maybe I might be getting ahead a bit, so unless anyone else has any ideas,...
  2. Replies
    2
    Views
    2,568

    Unusual Counter Behavior After 10 Digits?

    I've written a n00b practice program that extracts each digit from an integer of any size, and tell you how many of those integers are the number 7. The program works great, as long as the number...
  3. Replies
    5
    Views
    1,915

    Thanks for the replies, I searched on vart's...

    Thanks for the replies, I searched on vart's advice of the % operator and found this thread, with the answer from wise_ron near the bottom
    ...
  4. Replies
    5
    Views
    1,915

    Extracting Integers From a Single Variable

    I'm currently working on an example in the book C: How to Program that I can't seem to figure out on my own

    I need to write a program that will let me input, say, a 5-digit number, and then print...
  5. Replies
    8
    Views
    3,809

    OK, I think I have a good understanding of what's...

    OK, I think I have a good understanding of what's going on here, I'm sure I'll have another question very soon

    Thanks everyone for your help!
  6. Replies
    8
    Views
    3,809

    I see what you mean, I tried running the program...

    I see what you mean, I tried running the program again inserting random amounts of spaces in front of my entries, and it always trims it to just the numbers. However, if I put tabs and spaces AFTER...
  7. Replies
    8
    Views
    3,809

    Ah, I see, so scanf() is smart enough to tell...

    Ah, I see, so scanf() is smart enough to tell between a \n and a number, and throws out what it finds while it's searching for valid data? That makes perfect sense, that little detail wasn't in the...
  8. Replies
    8
    Views
    3,809

    After reading up on the scanf() function, I had...

    After reading up on the scanf() function, I had considered that, but if that's the case, then I would have assumed that adding the 2nd number into the program would have then required 3 getchar()'s...
  9. Replies
    8
    Views
    3,809

    why do I need 2 getchar()'s?

    I'm a total n00b to programming in general, so forgive me if this is a bad question, but I've been searching all over the place and can't quite find an answer for my particular problem.

    I want to...
Results 1 to 9 of 9