I'm almost done this code, but I don't know why there is an error...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define FILENAME "chill.txt"
Type: Posts; User: cuba06
I'm almost done this code, but I don't know why there is an error...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define FILENAME "chill.txt"
I've been working on this program for a while now and it isnt doing anything and there arent any errors at all. i've run a debugger but nothing happened. HELP!!
#include <stdio.h>...
Okay, here is the code so far, in its entirety:
I'm getting errors everywhere, mainly "subscripted value is neither array nor pointer". Can anyone offer any help? I'm getting desperate.
...
Sweet. Thanks Mats.
Another thing. I've got another function called fill_In_Insolation that fills in a 2D matrix that has 24 columns and 12 rows. Would I return the matrix in the same way as the...
Oh, so if I change the function from float to void, I don't need a return statement?
How would I do that?
I'm writing a program that needs to have several functions. Other than main, one of them is a function called get_inputs. In get_inputs, the program will get information from the user, and then...
okay, so I will need to create a pointer to the array, and then return the pointer?
If I wanted to return an array from one sub program to main in C, how would I do that exactly?
What I've got for my sub program right now is:
float get_inputs(float userInput[4])
so you are saying that i should make these things global, i.e. outside of main?
double calculate_eta(int eta[i], int i, double k);
int print_table(double k, int eta[7]);
and...
I have to make a program that will calcuate the efficiency of an engine. The efficiency is called eta, and it uses the variables CompressionRatio and the specific heat capacity (k).
I need to have...