#ifndef math_h
//right here ^^ it says unterminating if statement
void quad(double a, double b, double c)
void right(double s1, double s2, double hyp)
void random(int hi, int low)
void midpoint(int a, int b, int c, int d)
void cube(int x)
#define math_h
#endif
and then in my mymath.cpp file, I include "mymath.h"
so its really two errors, linking and that unterminating error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
.h file-
#ifndef math_h
//right here ^^ it says unterminating if statement
void quad(double a, double b, double c)
void right(double s1, double s2, double hyp)
void random(int hi, int low)
void midpoint(int a, int b, int c, int d)
void cube(int x)
#define math_h
#endif
and then in my mymath.cpp file, I include "mymath.h"
so its really two errors, linking and that unterminating error.
Include pastes the header into your cpp file. That unterminating if statement could be in that cpp file, as your header seems fine to me.
rpeter