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>...
Type: Posts; User: chenb
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>...
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...
Thanks for your help. Do you know a alternative to that part?
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};...
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",...
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};...
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...