yes this is what the overall code looks like thus far:
#include <stdio.h>
#include "ass2.h" /*Contains function prototypes*/
Type: Posts; User: ec661
yes this is what the overall code looks like thus far:
#include <stdio.h>
#include "ass2.h" /*Contains function prototypes*/
do you have any ideas on what would be used in the function to read the records? im abit lost.
hey i have a file that i need to read and then store into an array.
the file is called ass2.txt and looks like this:
7453842
Gregory Harrison
4
CSCI104 0 56
cheers this worked.
I'm having trouble with the function getType();
in the function getType the user is asked for input, jf the input is v or V the function getHeight should be run followed by...
thanks alot for the help mate i have one last question if it is ok with you, this is the last part i need to finish the code. these are the functions to find the area.
double vArea()
{...
cheers this worked however I'm now having the same problem with another code and i cannot see why. see below
int main()
{
printf("-- Wind turbine power calculator -- \n");
hi i have made this code to calculate the density when a user input for altitude is given using two different functions.
#include <stdio.h>
#include <math.h>
#define pi 3.14
hey i have written two functions and need to pass the value given to one function into an equation that is contained in another function.
this is the first function that is given a value from...
hi i have written a function outside of my main code and i was wondering how i could rewrite the function to return a value so that in my main code i can store the return value in a variable. this is...
hi i have written a code with multiple functions and i was wondering how i could multiply these functions together. a value is given to the functions from user input as seen below.
int main()...
cheers it fixed it!
i am using an if/else if statement in my code as can be seen below.
void getType()
{
char type;