Search:

Type: Posts; User: underpressure

Search: Search took 0.01 seconds.

  1. Excellet advice again. I totally get it now....

    Excellet advice again. I totally get it now. Thank you for the help!
  2. Thank you laserlight. Simple tip for me to figure...

    Thank you laserlight. Simple tip for me to figure out but such an obvious mistake I discovered in my code... it works now excellently. One last question; I initialized my flag variable to be equal to...
  3. Thanks for catching that. Should've been using...

    Thanks for catching that. Should've been using the equality operator. And I will rename flag in my final iteration of program as soon as I get it to work, just a name holder for now. Program still...
  4. That doesn't do anything as I still get the same...

    That doesn't do anything as I still get the same result
  5. #include #include #include...

    #include <iostream>
    #include <iomanip>
    #include <fstream>
    #include <string>


    using namespace std;


    //function prototype
  6. Thank you. Makes sense to make it more efficient...

    Thank you. Makes sense to make it more efficient rather than separate.

    Do you have any idea on how to make my min code work? I declared min = 100 since I know that there are values lower than 100...
  7. I got it for the max option.. I'm not sure how to...

    I got it for the max option.. I'm not sure how to do it for the min option?



    #include <iostream>
    #include <fstream>
    #include <string>


    using namespace std;
  8. Thank you for the input all. Unfortunately I...

    Thank you for the input all.

    Unfortunately I have not learned limits yet in my class so I am unable to utilize them.

    I think I can still take the advice given by Niccolo and cooper by...
  9. Finding mix & max of a calculated variable from an input file

    I'm currently learning about fstream in my beginner C++ class. I have an assignment where I am asked to do various things. I have a file that I read the name of the cities and their affiliated cost...
  10. Thanks for the response - I am trying make a...

    Thanks for the response -

    I am trying make a condition where if the totalcost variable is less or more than the minimum total for each different case ('X', 'S', 'L').

    So I assume I would have...
  11. Nevermind; I realized I didn't add my variables...

    Nevermind; I realized I didn't add my variables to the prototype in line 6 as well as the calculation in main in line 38.

    A follow up questions; it doesn't seem to be calculating my totalcost...
  12. New to C++; not sure how to solve error regarding my code w/ functions

    Hi all,

    I'm taking an introduction to C++ right now and I've been scratching my head over these errors. I'm not sure why my function is not being defined?

    The errors are: undefined reference to...
Results 1 to 12 of 14