I know how to open the files I want the info. to be read from and then printed to. I think I get also, how to print the info from the source file ("r") into the destination file ("w").
Now, once...
Type: Posts; User: ChrisH
I know how to open the files I want the info. to be read from and then printed to. I think I get also, how to print the info from the source file ("r") into the destination file ("w").
Now, once...
I am trying to write a program to read an arbitrary, but fixed number of input records from a file. I then want it to put or print this information read into another file. How would I go about doing...
I was able to figure out what the problem was. I had a line that I needed a " in. I fixed it and the program compiled fine.
That is exactly what I did. It still gives me that one warning/error.
It is only giving me one warning now;
I have looked the code over, and do not see what the problem is.
what do you mean?
I went ahead and tried to compile it and got the following errors;
Thank you so much for the help. I cannot believe my code was even close to correct, LOL. I have coped the revised code into a text file in notebook, and tomorrow will copy it to my compiler and try...
Just to double check, before I insert it, you said the following code
was fine to use?
So, if I copy all of the revised code you just posted, it should compile?
LOL, I really don't have much of an idea of what I am doing, but let me post what I've written so some of you can laugh and then try to help me....
Ok, I think I may get it. So, lets say now I have the program scanning the contents of the file and printing them out. How do I then get it to calculate the change due ... do I do it the same way,...
Ok, now lets say I dont want a person to enter a value for cost or payment, etc., but that the info is already stored in a file that I want the program to open, scan and then calculate the change...
I think I get it, but do you mind giving me a quick example. Say, change due is $43.00. Show me, with the loop, I assume a while statement, I would calculate and have it print the number of 20's to...
1) I enter price of item
2) I enter amount paid
3) Subtract amount paid minus the price
4) print this number as change due,
then I step by step need to ask it to calculate the number of each...
I am trying to write a C program to calculate change due. How would I go about doing this? It needs to print the amount of change due for each coin/dollar.
For Example, lets say someone is due...