Search:

Type: Posts; User: Krash005

Search: Search took 0.01 seconds.

  1. But is that still bad design? I guess I am not...

    But is that still bad design? I guess I am not really understanding why globals are bad, for locals are okay.
  2. Trying Not To Use Global Variables With Function

    I want to have this function plus a variable by one. and it does. But i want to do it without using global variables, as i have read it is poor design. Does that mean you don't need to declare...
  3. Wow, I think I actually got it now. I thought it...

    Wow, I think I actually got it now. I thought it would take me much longer to understand all this, let alone get the code right.



    #include<stdio.h>
    #include <windows.h>

    int main()
    #define...
  4. Thanks for the indentation tip, I haven't gotten ...

    Thanks for the indentation tip, I haven't gotten to the "Indentation" chapter of the tutorial sets yet (and there actually is one, so I can see its importance). This is only my 4th or 5th program. ...
  5. Ok, my understanding of this has been greatly...

    Ok, my understanding of this has been greatly improved, thank you very much.

    Unfortunately the program itself has changed little.



    #include<stdio.h>
    #include <windows.h>

    int main()
  6. Thanks for all your help so far. Here's what I...

    Thanks for all your help so far. Here's what I have. Don't mind the printf checks. As you can see I am really new at this, and I need to see that even easy things like scans worked, by printing...
  7. I was under the impression that you would need to...

    I was under the impression that you would need to take those ISBN numbers, and multiply them with the their placement number, then add up all of those numbers. Is that still possible if it reads as...
  8. Can a scanf function see a number input "1234" as 4 separate numbers?

    I am doing an ISBN digit check program. I'm not actually in school, but it's on the curriculum in a lot of C classes. Naturally want to be able to do it.

    I am trying to figure it all out,...
  9. Replies
    8
    Views
    1,690

    Sorry, lol. Yeah I was reading up on that very...

    Sorry, lol. Yeah I was reading up on that very url while deciphering, trying to use it as like a translator. I watched a youtube video on bubble sorts too, before i started.

    I think I might be...
  10. Replies
    8
    Views
    1,690

    Well lets see. On the first loop, y is...

    Well lets see.

    On the first loop, y is assigned to 0.

    So t gets assigned to a[0].
    Then a[0] is assigned to a[1].
    Then a[1] gets assigned to t.

    I can see, or sense rather, a circular motion...
  11. Replies
    8
    Views
    1,690

    Can't see the bubbling in the bubble sort.

    I'm as noobish as you get, first time using C and my first time programming. This is the 3rd program I am attempting to understand and replicate.

    I understand that bubble sorting compares two...
  12. Replies
    3
    Views
    1,148

    Oh I see! b is assigned to a, making b 0, but...

    Oh I see!

    b is assigned to a, making b 0, but not till the end of the first loop.
    But, why do they assign b to -1 in the beginning? It seems arbitrary, and maybe that's the point.

    The...
  13. Replies
    3
    Views
    1,148

    C Misunderstanding Of Variable Assignments.

    I have never programmed before, and am starting with some C using tutorials such as howstuffworks.com

    In this particular tutorial: HowStuffWorks "How C Programming Works"

    A list of Fahrenheit...
Results 1 to 13 of 13