IT WORKS! I've been messing around with this for 5 hours and it finally works.
Thank you all very much. Here's what the code is supposed to look like:
// asc array.cpp : Defines the entry...
Type: Posts; User: leroyjenkins
IT WORKS! I've been messing around with this for 5 hours and it finally works.
Thank you all very much. Here's what the code is supposed to look like:
// asc array.cpp : Defines the entry...
apparently this
if (k == 0)
break ; was left over from a bad copy paste.. I took it out and didn't affect anything.
I mean it won't sort the numbers at all. It just kind of skips around.
I think all the curly braces are in there, actually.
I'm trying to sort an array of numbers input from the keyboard. I've done some searches on here, but nothing can point me in the right direction. Without defining the numbers, I can get the array to...
Thanks everyone. Thank you all very much.
Well i'll be dang. It works now. It was just that last statement.
printf("The number for the date is %d", number);
That's what I read.
printf ( "%5d\n", 123 ); /* Prints " 123" */
This is what I have in there now.
printf ("%5d\n, The date number is %5d");
I tried this
printf ("%5d\n", The date number is %5d);
and nothing but a thousand errors.
printf("The number for the date is %c", &number);
like so?
Edit:
Can you show me how to fix it?
I honesly have no idea.
Ok. I changed x and y to ints, but still getting 0. :confused:
Hi all.. I've got a problem with some code I'm writing and I don't know how to make it do what I want. Every time I debug it, it gives me a 0 value. The goal is to write a program that given the date...