Thank you so much for taking the time to explain this to me. I've printed this page and will add it to my notes. I feel like I've jumped into more advanced programming than I am ready for. My teacher...
Type: Posts; User: Trekkie
Thank you so much for taking the time to explain this to me. I've printed this page and will add it to my notes. I feel like I've jumped into more advanced programming than I am ready for. My teacher...
Thank you so much! I can finally follow the code. I didn't know how or where to input the void GetData part. I'm still learning, so thanks for your patience!
I made some changes, but I am still getting the same error messages. Here is what my code looks like now:
#include <iostream>
#include <iomanip>
using namespace std;
void GetData( float&,...
Isn't that what I did when I used:
GetData(miles, hours);
Hi,
I'm trying to write a program that will give me miles per hour. This is what I have so far:
#include <iostream>
#include <iomanip>
using namespace std;
Hi,
I'm trying to get the second call to SumNumbers a value other than 0. I think that the second call to SumNumber is 0 just like the first call because I have "static int cnt = 0;". I don't know...
THANK YOU!!!!!!!!!!!!!!! :p
I'm still working on this assignment. I've made some changes, but now I'm getting an error that my file cannot be opened. Here is my code:
#include <iostream>
#include <fstream>
#include...
Ok, after another 3 hours, this is what I have:
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cmath>
Yes, that does help a little bit. But I still don't know how to get the information in the same format as the chart.
I've tried this:
while(indata)
{
song++;
cout << min;
Hi,
My assignment is to figure out the total time for a group of songs and see how they will fit on a CD. The data are on file songs.dat and looks like this:
300
250
500
570
380
425
Nope, don't know him... Maybe same textbook? Programming and Problem Solving with C++ by Nell Dale and Chip Weems.
Thank you for all your help. It's taken me a little over 9 hours to do this program. I hope they get easier! I guess it would help if I knew in advance that "char" held only one letter. It's the...
This is only my second program... I don't even know what switch/case is!
I will try and remember that for in the future.
Thanks again for all your help.
I made some more changes, and everything looks pretty good now. I have one more question. You mentioned in your last post that I should "You can either put another...
Thanks for your help.
I think I am finally moving forward, but now my output is not coming out. I didn't use string instead of char just because I had a ton of errors when I tried to switch the...
Hi,
I'm doing another homework problem and I've been stuck for a couple of hours. The assignment is to find your weight on the different planets. Right now, I've been able to tell the user their...
I have a homework problem that I am not sure about. It deals with how input is read. The problem is:
If input data are entered as follows
10 20
30 40
50 60
70 80
and the...
Thanks for giving me some ideas.
I have another question. Can I have use outdata.open ("tempdata.dat"); without using an indata.open statement?
For the cin portion of the program do I need to...
Hi,
This is only my second program, so please be patient with me :)
My assignment is to write a program that inputs 12 temperatures from the user. It should write out on file "tempdata.dat"...