Search:

Type: Posts; User: Xenofizz

Search: Search took 0.01 seconds.

  1. Anyone know how to do that? Set it back to...

    Anyone know how to do that? Set it back to default after using setprecision and setiosflags?
  2. One other quick question. If use this line: ...

    One other quick question. If use this line:

    cout << setprecision(3) << setiosflags(ios::fixed);

    How can I negate that and make it go back to normal?
  3. What is the best way to make a table of sorts.

    I am writing a program that intakes baseball stats into structs and then displays them line by line with one player on each line and the stats being the columns.

    Not sure how to do this well...
  4. Awesome, thanks.

    Awesome, thanks.
  5. Crap, one more problem though. I was supposed to...

    Crap, one more problem though. I was supposed to use floats and the absolute value is automatically converting them to ints and I'm losing data. Any way to fix this?
  6. Thanks a ton guys! Got it to work finally. The...

    Thanks a ton guys!

    Got it to work finally. The absolute value was killing me. I totally forgot about it.
  7. Finding the closest number to the average and the farthest.

    Ok, I'm doing this program for class and have tried a million times to do this, but I just can't. I use an array of 20 numbers, ask the user to enter them, and then take the average. I did that all...
  8. Thanks! I got it to work, I think. Even if not...

    Thanks!

    I got it to work, I think. Even if not so, you helped a lot. Awesome!
  9. It's a real weird formula. It's the square...

    It's a real weird formula.

    It's the square root of a summation of each number minus the average, squared and divided by the amount of numbers minus 1.

    It's hard to explain, even harder to code.
  10. Standard Deviation of an array of numbers...

    I am writing a program that tells the user to enter 20 numbers, then it uses those and finds the average and standard deviation.

    I put the 20 numbers in an array.

    Does anyone know the c++...
Results 1 to 10 of 10