Never mind this post. I don't know what happened but it is working like it should now, even using the prefix form. I probably forgot to save before recompiling or something.:rolleyes:
Glad to...
Type: Posts; User: LineOFire
Never mind this post. I don't know what happened but it is working like it should now, even using the prefix form. I probably forgot to save before recompiling or something.:rolleyes:
Glad to...
Dave_Sinkula, yes, I did mean that. For some reason when I compile it using prefix form it refuses to sort.
Quzah, I thought that was how it worked, but something seems to be wrong in my case.
...
I have this bubble sort code that is just supposed to sort elements of an array in ascending order:
#include <stdio.h>
int main(void)
{
int i = 0, didSwap = 0, temp = 0, inner = 0,...
Once I learn structures I will re-write it to use difftime but right now that just looks like gibberish to me. :(
I think he meant that you aren't initliazing i and n before the loop so those variables could contain anything. You never set what i is so it will not contain 1 like you want it to.
Can you post a...
Most of the things you guys suggested I haven't learned/have no idea what you're talking about yet. Only finished learning the loops and just starting pointers:p
I made lots of changes to the code...
I left the leap years/months with less days because it was too complicated like you said. I am in the process of coming up with some solutions though. The four digit years thing was something I...
I finally took the plunge, decided to register and join in on the discussion. :)
I am using the book "Practical C Programming" to help teach myself how to program in C. I've gone through the...