Search:

Type: Posts; User: Titanguy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,797

    I have the program initiating "total" twice when...

    I have the program initiating "total" twice when dividing by zero and the 2nd time is nonsense. Also I am getting a "Can not divide by zero" comment for non zero divisors (example 23/3?)


    aghhh,...
  2. Replies
    7
    Views
    1,797

    Do..While Loops

    New Project... need help please:

    Attached is the instructions.

    Here is what I have so far and having trouble:



    #include <iostream>
    using namespace std;
  3. Replies
    22
    Views
    3,358

    here goes: #include using...

    here goes:



    #include <iostream>

    using namespace std;

    int main()
    {
  4. Replies
    22
    Views
    3,358

    I am sorry about the indenting. WHen I paste,...

    I am sorry about the indenting. WHen I paste, it, somehow it changes.

    Ok. I am going to repost. can you try and compile it for me and let me know if it works?

    I can't compile on the...
  5. Replies
    22
    Views
    3,358

    Ok, move the range calculation out of loop, ...

    Ok, move the range calculation out of loop, See below, am I right? Also, what do you mean "cast"



    #include <iostream>

    using namespace std;

    int main()
    {
  6. Replies
    22
    Views
    3,358

    Ok, how does this look: #include...

    Ok, how does this look:



    #include <iostream>

    using namespace std;

    int main()
    {
  7. Replies
    22
    Views
    3,358

    Ok, so will this work? (don't have a compiler...

    Ok, so will this work? (don't have a compiler on this computer)


    #include <iostream>

    using namespace std;

    int main()
    {
    double n, count=0, sum=0, min=0, max=100;
  8. Replies
    22
    Views
    3,358

    Or do I do: if (n

    Or do I do:

    if (n<min) min = n;
    else if (n>max) max = n;


    And if so, where would I place this in my code?
  9. Replies
    22
    Views
    3,358

    thank you for your help. so, in my first...

    thank you for your help.
    so, in my first line I should:

    double n, count=0, sum=0, min=100, max=0;

    (Is this right?)

    Then with each loop do:

    if (n > max) max=n
  10. Replies
    22
    Views
    3,358

    I am unsure how to use the set command with the...

    I am unsure how to use the set command with the min/max, and unsure how to implement it so it only shows the difference of the lowest and highest numbers entered. Did you see the attachment on my...
  11. Replies
    22
    Views
    3,358

    Can you give me an example of this in code? I...

    Can you give me an example of this in code?
    I really don't know where to begin with all the set / min/max?
  12. Replies
    22
    Views
    3,358

    I know the program I posted works perfectly. The...

    I know the program I posted works perfectly. The problem I am having is adding the fact of:

    "The range is the difference between the lowest and the highest number"


    I have to add this...
  13. Replies
    22
    Views
    3,358

    New assignment.

    Please help, running out of time. Assignment is attached. What I have so far is below. Where I am stuck is the "Range" ordeal. Please help:




    #include <iostream>

    using namespace std;...
  14. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    Awesome, tried it. got error: ...

    Awesome, tried it. got error:

    i586-pc-msdosdjgpp-gcc: Internal compiler error: program cpp got fatal signal 11
  15. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    I guess I am in the wrong spot for help?

    I guess I am in the wrong spot for help?
  16. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    Ok, how can I set the path back to original? ...

    Ok, how can I set the path back to original?


    I don't want to mess with this computer.


    Also, can someone review the code I posted and see if that meets the requirements/corrections of the...
  17. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    It didn't work. no big deal, but I set the...

    It didn't work. no big deal, but I set the path to:

    set path=%path%;E:\MinGW\bin


    How can I undo that, so nothing is changed on the computer?
  18. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    after I set the path, how do I set the path back...

    after I set the path, how do I set the path back to original?
  19. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    how do you start the program?

    how do you start the program?
  20. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    Ok, here is what I came up with now: ...

    Ok, here is what I came up with now:




    #include <iostream>

    using namespace std;

    int main()
  21. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    I just found an online compiler

    I just found an online compiler
  22. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    aghhh, I am stuck

    aghhh, I am stuck
  23. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    thank you for your help. the situation I am in...

    thank you for your help. the situation I am in doesn't allow me access to a compiler. so i am trying to make due with doing this the best I can.


    So I cannot use this?



    {
    if (num1 < 1 ||...
  24. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    How about: #include using...

    How about:



    #include <iostream>

    using namespace std;

    int main()
    {
  25. Thread: Help

    by Titanguy
    Replies
    36
    Views
    3,240

    You lost me... I am brand new to this. please...

    You lost me... I am brand new to this. please explain
Results 1 to 25 of 36
Page 1 of 2 1 2