W
Willie
I am really not sure why I'm getting an error with this code
"testRational.cpp", line 5: Error: Use ";" to terminate declarations.
it just doesn't make any sense to me so I figure I must be overlooking
a stupid little thing that somebody else can see which I'm blind to.
-------testRational.cpp-------------------
// Test driver for Rational number objects
#include "Rational.h"
int main() { //line 5
Rational r1(4, 5);
}
-------Rational.h-------------------------
#ifndef _RATIONAL_H_
#define _RATIONAL_H_
#include <iostream.h>
#endif
class Rational {
public:
Rational(int, int);
}
"testRational.cpp", line 5: Error: Use ";" to terminate declarations.
it just doesn't make any sense to me so I figure I must be overlooking
a stupid little thing that somebody else can see which I'm blind to.
-------testRational.cpp-------------------
// Test driver for Rational number objects
#include "Rational.h"
int main() { //line 5
Rational r1(4, 5);
}
-------Rational.h-------------------------
#ifndef _RATIONAL_H_
#define _RATIONAL_H_
#include <iostream.h>
#endif
class Rational {
public:
Rational(int, int);
}