ok thank you very much that is what I thought. Thank you.
Type: Posts; User: leopardforest@g
ok thank you very much that is what I thought. Thank you.
I just thought I remember someone telling me that scanf() only used %f . But maybe my memory is just failing me. Thank you!
ok am I just dumb or does it not matter? Doesn't it just depend on the type used ie: float, double, int ??
Thanks!
When using scanf() to assign to a to a double is this the right way to do it:
scanf("%f%*c", double)
or
scanf("%lf%*c", double)
Thanks!
Sorry for doubting you in your suggestion. I think i see what you are try to say. This is my most current code and it seems to be giving the results that I need. Does it look like what you were...
Thanks, but thats not quite what I am looking for.
So if the user inputs this:
Enter your Code : 1 (This number also corresponds with a name array that works)
Date: 05/09/07
...
Oh I did not realize. Thanks.
I dont quite understand? Am I in the wrong forum?
I am writing a program that saves all of its input to a binary file. I have three entries: your code(1-5), date, and sale amount. I have the program storing everything in the file, but I need to...
never-mind i figured it out thanks anyways.
I am working on a program where I just started using structures and I am listing product numbers, types, descriptions, quantities, costs, prices, and profits. Now after I have entered x amount of...
I havent written anything yet. Would i want to to have the program start out uppercase and then count characters and whenever it reached whitespace have it switch back to uppercase?
How can I change the case of a string? I need to be able to change the case so it would look like this:
input: "this is a string" output: "This Is A String"
or
input: "THIS IS A STRING" ...
so using
22.2lf
is not desired?
so use
22.2f
Alright thank you for the help!!
Alright this what I have at the moment and it is giving me what I want, now I just need to make sure that it is what I am supposed to do. Here is it is.
#include <stdio.h>
#include <ctype.h>...
Do you think that will be fine? It seems like he would have made it clearer if that was the case. Right? I am not too sure... I am very new at this.
sorry that was my mistake. I meant in C language. How to underline in C language?
I am not challenging you. But I dont understand why I have to do that? What tells you that you have to calculate it outside of the loop? Am I missing something?
Oh I really didnt know. But I think that I am supposed to use pointers. See the very first post. Does it seem to follow those directions??
If I wanted to have something print underlined, how would I do that? Is it something simple or is it rather involved?
Thanks
What is the benefit of doing that?
ok how about this one. it seems to be working right.
int main(void )
{
char name[][100] = {"Larry Lister", "Sue Sales ", "Eva Escrow ",
"Morley Money", "Pete Profit"};
Yes I must because I just ran the program a bunch of times and it is only using the first input for the total and average. Loop...hmmm. I will be back.
How about this code, I just got it to work and I think that it follows the directions?
}
while (choice != 'N');
report(name, totsales);