Search:

Type: Posts; User: Micolejr2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    913

    Ok, i just put .5555 instead of 5/9, how would...

    Ok, i just put .5555 instead of 5/9, how would you code 5/9 to work?



    double get_celsius(double fahrenheit)
    {
    double x = 5/9,
    result;

    result = (fahrenheit - 32) *...
  2. Replies
    4
    Views
    913

    Function help

    My output for the variable celsius is 0 everytime. I can't figure it out =(. Can anyone spot what is wrong?



    #include <iostream>
    using namespace std;

    double get_celsius(double);

    int...
  3. Replies
    4
    Views
    9,293

    Thank you for the tip, I will make sure to do...

    Thank you for the tip, I will make sure to do that in the future =)
  4. Replies
    4
    Views
    9,293

    Thank you. The Do-while loop worked perfectly, I...

    Thank you. The Do-while loop worked perfectly, I also had my math wrong lol =).

    Anyways, heres what the code is now.




    #include <iostream>
    using namespace std;
  5. Replies
    4
    Views
    9,293

    warning c4700

    learning functions and I am having trouble with some local variables. I keep getting "warning C4700: uninitialized local variable 'y' used", same for the variable x. Are my loops in combinations...
Results 1 to 5 of 5