Hey guys, i have three different files 1 header and 2 cpp files i'm trying to compile but it keeps giving me this
"unexpected tokens following preprocessor directive - expected a newline"
This is my header file
#ifndef Dias_ball.h
#define Dias_ball.h
#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
bool Ball::operator < (Ball b) const {
return mass < b.mass && radius<b.radius;
}
bool Ball::operator > (Ball b) const {
return mass > b.mass && radius>b.radius;
}
and this is my main file which its just basic so i can see if i can get it to work before moving on but i can't get past that error for a couple hours now.
#include <iostream>
#include "Dias_ball_h"
file which its just basic so i can see if i can get it to work before moving on but i can't get past that error for a couple hours now. Does anyone see anything wrong or it couple be my ide thats not working correctly?