Search:

Type: Posts; User: chenb

Search: Search took 0.01 seconds.

  1. Thanks for your answer. So if I compare doubles...

    Thanks for your answer. So if I compare doubles with doubles should work right? Because Im trying with the code below but now I get always that the arrays are diferent.



    #include <stdio.h>...
  2. Strange issue: Different results of the calculation of a polygn area and perimeter

    Im have a program to calculate the area and perimeter of a polygn. Also Im confiming if the result of the area and perimeter calculations are equal to the expected result.

    I dont understand what...
  3. Thanks for your help. Do you know a alternative...

    Thanks for your help. Do you know a alternative to that part?
  4. I just change to ...

    I just change to sprintf(result,"%.2f%.2f",polygon_area, perim); The actual code is now this:



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <string.h>
    enum { x, y};...
  5. yes, thanks for your help. Im trying to fix this...

    yes, thanks for your help. Im trying to fix this with that advice. But its strange, using sprintf, now I have 4 lines in the file and for the first two lines it is working now I get "Arrays match",...
  6. You can see the other part below, it is working...

    You can see the other part below, it is working and its showing always "Arrays diferent".



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <string.h>
    enum { x, y};...
  7. Check if the area and perimeter is the expected result

    I have a program to calculate area and perimeter of a polygon. It reads each line of a text file, each line has some coordinates, and with that coordinates it calculates the area and the perimeter of...
Results 1 to 7 of 7