So if it says row 0 column 1 that is actually row 1 column 2.... but the computer sees it as column 1 and row 0... i think that makes sense now..
Type: Posts; User: jwillisoa
So if it says row 0 column 1 that is actually row 1 column 2.... but the computer sees it as column 1 and row 0... i think that makes sense now..
It just seems like that is cheating, but if it works i guess it is not.
Ok i got that part... i think i was missing this to get it to come out good:
if (test < small)
{
small = test;
c = j+1;
r = i+1;
}
because it was coming out 1 off every time.
and actually wrong again for that matter... If it is the first one it is coming up with huge numbers.. How does that happen..
no iwasnt saying you were wrong, i was saying i was wrong
nope again...
actually that doesnt work... maybe 1
i guess i need to set them to zero ay
how are r or c undefined? they seem to be initialized to me... when i say
int i, j, r, c, test, small; small = num [0][0];
correct?
does anyone know why this will not tell me the row and column of the smallest number in the array?
#include<stdio.h>
int main()
{
#define NUMROWS 2
#define NUMCOLS 3
Thanks for the pointer, i think i can make that work, and also the iostream thing is removed and it works peachy..
I seem to never be able to figure out the little things that are screwing up my programs... It is always something tiny... anyone have a clue?
#include <stdio.h>
#include <iostream>
main ()...
I think i have some mixed up stuff in my program, maybe some c++ in there as well. Used alot of internet sites and maybe misunderstood something. Im trying to get this thing to count the number of...
should i put it at the top before int main?
awesome... it works great! I have sucha hard time finding the little things sometimes, but im getting better. Thanks
i don't know i guess i was failing conservative... it just seemed like it needed to be there.
Im trying to create a structure that has a pointer to a list and allow someone to enter 5 grades. Display that and then enter one more followed by another reprint. Just keep getting an error saying...
See it is something so simple that makes it seem so hard... thanks alot! It works like a champ now. Just so you know i tried a long time before i came for help... i appreciate it.
#include <stdio.h>
int main()
{
void change(float, int *, int *, int *, int *); /*Prototype*/
int quarters, dimes, nickels, pennies;
float firstnum = 1.88;
float secnum = 0.32;...
After the change the values are still way out to lunch. Something still is not right.
im taking c programming and i have to get my program to say how many quartes dimes nickels and pennies are in a certain value... 3 different times... i get the display to look right, but the correct...