This is a program my teacher wrote for us as an example. You would have to modify it to work the way you want it to, but as it stands it sorts in ascending order. You must change it to descending and...
Type: Posts; User: Mace
This is a program my teacher wrote for us as an example. You would have to modify it to work the way you want it to, but as it stands it sorts in ascending order. You must change it to descending and...
I figured out what I was doing wrong, and that's very similar to the code I used to do it. Thanks for the help though.:cool:
ok, thanks
I would create a global integer and set the value to zero. If you then deposit money, change the value to 1. Then use an if statement to do withdrawl. If a=0 then return else withdrawl. I don't use...
Simple question, I feel real dumb asking this:
How do you remove the "\n" from the end of a string to prevent the printf to go to the next line?
Example:
char a[]="testing\n";
char...
I'm sorry, I'm not familiar with "atoi()" How would you use that to convert the string "zz" to integer "yy"?
int yy;
char zz[10];
strcpy(zz,"5280");
printf("%.2i",yy);
I'm just trying to learn C and I've come accross something that stumps me. How do you read in a file that has both words and numbers as both strings and doubles? Say a .txt file has a name, name,...