When I tried to compile my code, I got this in the log:
child 2136(0xD8) died before initialization with status code 0x1
*** child state waiting for longjmp
*** child state waiting for longjmp
Resource temporarily unavailable
C:\Users\Collin\Desktop\Programming\Makefile.win [Build Error] [HW8P1Class.o] Error 2
This is the file that seems to be causing the problem (HW8P1Class.cpp):
#include <iostream>
#include <cmath>
using namespace std;
void point::prompt_values();
{
cout << "Enter the x-value for the point: ";
cin >> x;
cout << "Enter the y-value for the point: ";
cin >> y;
cout << "Enter the z-value for the point: ";
cin >> z;
}
void point::disp_point();
{
cout << "The x-value for the point is " << x << endl;
cout << "The y-value for the point is " << y << endl;
cout << "The z-value for the point is " << z << endl;
}
double point::distance(point cord)
{
return sqrt(pow((x-cord.x),2)+pow((y-cord.y),2)+pow((z-cord.z),2));
}
int point::compare(point cord)
{
if ( x==cord.x && y==cord.y && z==cord.z ) return 1;
else return 0;
}
If it helps, this is the header file for the class:
class point
{
int x;
int y;
int z;
public:
point(int=0,int=0,int=0);
void prompt_values();
void disp_point();
double distance(point);
int compare(point);
}