Search:

Type: Posts; User: Magi

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    2,037

    Thank you so much, that did the trick :D

    Thank you so much, that did the trick :D
  2. Replies
    9
    Views
    2,037

    #define max 10 double miles [max] = {240.5,...

    #define max 10 double miles [max] = {240.5, 300.0, 189.6, 310.6, 280.7, 216.9, 199.4, 160.3, 177.4, 192.3};
    double gallons [max] = {10.3, 15.6, 9.7, 14, 16.3, 15.7, 14.9, 10.7, 9.3, 9.4};
    ...
  3. Replies
    9
    Views
    2,037

    Technically I don't have to use the pointers but...

    Technically I don't have to use the pointers but the assignment I'm trying to do says to use pointers. Also the increment of the pointers being placed within the for loop header leads to the print...
  4. Replies
    9
    Views
    2,037

    I removed the '&'s and it still is just printing...

    I removed the '&'s and it still is just printing the calculation from the first location in the array.
  5. Replies
    9
    Views
    2,037

    Incrementing pointers assigned to arrays

    Hello all. I am needing to do a mpg calculation using pointers in both the calculations and the print statement. I have the basic code set up but I am not sure how to set up the pointers so they go...
Results 1 to 5 of 5