Search:

Type: Posts; User: Trekkie

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,905

    Thank you so much for taking the time to explain...

    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...
  2. Replies
    10
    Views
    1,905

    Thank you so much! I can finally follow the code....

    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!
  3. Replies
    10
    Views
    1,905

    I made some changes, but I am still getting the...

    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&,...
  4. Replies
    10
    Views
    1,905

    Isn't that what I did when I used: ...

    Isn't that what I did when I used:

    GetData(miles, hours);
  5. Replies
    10
    Views
    1,905

    Homework Help Using Functions

    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;
  6. Replies
    5
    Views
    2,839

    Static vs. Automatic Variables

    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...
  7. Replies
    9
    Views
    1,392

    THANK YOU!!!!!!!!!!!!!!! :p

    THANK YOU!!!!!!!!!!!!!!! :p
  8. Replies
    9
    Views
    1,392

    I'm still working on this assignment. I've made...

    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...
  9. Replies
    9
    Views
    1,392

    Ok, after another 3 hours, this is what I have: ...

    Ok, after another 3 hours, this is what I have:




    #include <iostream>
    #include <fstream>
    #include <iomanip>
    #include <cmath>
  10. Replies
    9
    Views
    1,392

    Yes, that does help a little bit. But I still...

    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;
  11. Replies
    9
    Views
    1,392

    Homework Help Using While

    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
  12. Replies
    16
    Views
    13,091

    Nope, don't know him... Maybe same textbook?...

    Nope, don't know him... Maybe same textbook? Programming and Problem Solving with C++ by Nell Dale and Chip Weems.
  13. Replies
    16
    Views
    13,091

    Thank you for all your help. It's taken me a...

    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...
  14. Replies
    16
    Views
    13,091

    This is only my second program... I don't even...

    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.
  15. Replies
    16
    Views
    13,091

    Thanks again for all your help. I made some...

    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...
  16. Replies
    16
    Views
    13,091

    Thanks for your help. I think I am finally...

    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...
  17. Replies
    16
    Views
    13,091

    Your Weight On Planets

    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...
  18. Replies
    3
    Views
    1,264

    Another Homework Question

    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...
  19. Replies
    5
    Views
    1,459

    Another Question

    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...
  20. Replies
    5
    Views
    1,459

    Homework Help Using Files

    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"...
Results 1 to 20 of 20