Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //rational.h
- namespace Numbers {
- struct Rational{
- int numeratore;
- int denominatore;
- Rational(int num=0, int den=1);
- };
- .
- .
- .
- }//numbers
- //Rational.cpp
- namespace Numbers{
- Rational{
- int numeratore;
- int denominatore;
- Rational(int num=0, int den =1){
- numeratore = num;
- denominatore = den;
- }//costruttore
- } ;
- //struct
- .
- .
- .
- }namespace
- rational.cpp:10: error: expected unqualified-id before ‘{’ token
- Rational{
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement