Search:

Type: Posts; User: ec661

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,886

    yes this is what the overall code looks like thus...

    yes this is what the overall code looks like thus far:






    #include <stdio.h>
    #include "ass2.h" /*Contains function prototypes*/
  2. Replies
    5
    Views
    2,886

    do you have any ideas on what would be used in...

    do you have any ideas on what would be used in the function to read the records? im abit lost.
  3. Replies
    5
    Views
    2,886

    How to read file and store into an array

    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
  4. Replies
    6
    Views
    5,584

    cheers this worked. I'm having trouble with...

    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...
  5. Replies
    6
    Views
    5,584

    thanks alot for the help mate i have one last...

    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()
    {...
  6. Replies
    6
    Views
    5,584

    cheers this worked however I'm now having the...

    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");
  7. Replies
    6
    Views
    5,584

    Code generating wrong answer

    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
  8. Replies
    1
    Views
    2,464

    passing value of one function into another

    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...
  9. Replies
    1
    Views
    1,223

    assigning a value to a function

    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...
  10. Replies
    4
    Views
    3,744

    multiplying functions

    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()...
  11. Replies
    2
    Views
    2,702

    cheers it fixed it!

    cheers it fixed it!
  12. Replies
    2
    Views
    2,702

    if/else if statement

    i am using an if/else if statement in my code as can be seen below.




    void getType()
    {
    char type;
Results 1 to 12 of 12