Search:

Type: Posts; User: bassist11

Search: Search took 0.02 seconds.

  1. Ok. This is bringing back memories of the class I...

    Ok. This is bringing back memories of the class I took now.. I remember reading that FAQ before and most of it going right over my head. :)

    I'm going to come back to what you guys said tomorrow...
  2. How to handle inputs if the user inputs the wrong thing

    Did a search, nothing really came up so here goes..

    I have a long floating input in my program where the user needs to input a value with a decimal point.


    printf("Please enter the altimeter...
  3. Floating point math is preferred with the...

    Floating point math is preferred with the calculations I'm doing.

    Those two floating variables that I'm checking for equality are fresh off the input line. There is no calculating being done with...
  4. Alright. Sorry guys. I just realized I forgot to...

    Alright. Sorry guys. I just realized I forgot to put a double equal sign. I got it working.

    If anyone has a more efficient way to do this though, I would appreciate it.
  5. Need a way to pick out multiples of 10 from a group of numbers

    So I have a program where I can input a number from 0 to 40 as one variable, and a number from 0 to 8000 as another variable.

    Depending on the numbers, there are certain formulas I need to use....
  6. Replies
    5
    Views
    26,734

    Yeah I just figured it out. Put another for loop...

    Yeah I just figured it out. Put another for loop above that one for the column. Thanks though!

    SOLVED!
  7. Replies
    5
    Views
    26,734

    Swapping rows in a 2D array

    So let's say I have a 3x4 array filled with these values:

    15 7.5 1 15
    12 6 1 12
    23 11.5 1 23

    Now I want to swap rows so that the row with the...
  8. Replies
    2
    Views
    2,262

    Doing calculations on a data file

    Ok new problem... The assignment I'm working on right now requires us to read in a file, make calculations on the file, and write the results to a new file. The file contains like 225 sets of data...
  9. Replies
    3
    Views
    1,973

    Bingo! I put it right next to the executable and...

    Bingo! I put it right next to the executable and that seemed to be the trick. Thanks!
  10. Replies
    3
    Views
    1,973

    Where to put files to be read in on a Mac

    OK this is more of a logistics question than anything. I'm running XCode on my Macbook right now and can't figure out how to read in a file in my program.

    Basically there is a pixel_load.dat file...
  11. Replies
    14
    Views
    16,523

    Yes. You put a number in and hit enter and it...

    Yes. You put a number in and hit enter and it puts it on the stack. That's where I was confused too but my instructor helped me out there.
  12. Replies
    14
    Views
    16,523

    Sure. Here's where I'm at currently. ...

    Sure. Here's where I'm at currently.



    //Header Files
    #include <stdio.h>
    #include <math.h>
    #include <ctype.h>

    #define MAX_BUFFER_SIZE 100
  13. Replies
    14
    Views
    16,523

    Ok I got some more help from the professor today...

    Ok I got some more help from the professor today and made some good progress. I think I can handle it from here but there is one problem.

    When I run my code, the only error I get is at the end...
  14. Replies
    14
    Views
    16,523

    That's what I figured.. I've read through that...

    That's what I figured.. I've read through that whole article. Haha my professor basically printed that off and gave it to us and said, "There's your next assignment".

    So I should use a for loop...
  15. Replies
    14
    Views
    16,523

    RPN calculator

    Alright so my professor gave us an assignment to make an RPN calculator. He supplied us with the code to read in values and we have to write the code to put the values in an array and do the...
Results 1 to 15 of 15