But is that still bad design? I guess I am not really understanding why globals are bad, for locals are okay.
Type: Posts; User: Krash005
But is that still bad design? I guess I am not really understanding why globals are bad, for locals are okay.
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...
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...
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. ...
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()
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...
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...
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,...
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...
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...
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...
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...
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...