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...
Type: Posts; User: bassist11
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...
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...
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...
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.
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....
Yeah I just figured it out. Put another for loop above that one for the column. Thanks though!
SOLVED!
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...
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...
Bingo! I put it right next to the executable and that seemed to be the trick. Thanks!
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...
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.
Sure. Here's where I'm at currently.
//Header Files
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#define MAX_BUFFER_SIZE 100
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...
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...
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...