L
Louise Hoffman
Dear developers,
I have written this program which can be downloaded from
http://www.sendspace.com/file/3uqpq1
as a 8Kb zip file, but I get these 3 warnings
main.cpp:101: warning: comparison between signed and unsigned integer
expressions
Expr.cpp: In member function 'virtual std::string Expr::toString()':
Expr.cpp:14: warning: control reaches end of non-void function
Expr.cpp: In member function 'virtual double Expr::eval()':
Expr.cpp:12: warning: control reaches end of non-void function
I have no idea why I get the first one. The code in question is
for( int i = 0; i < expressions.size(); i++ ) {
}
and for the other two warnings it is
double Expr::eval() {}
string Expr::toString() {}
If I make them void, then the program breaks, and I don't know how to
make it work then.
Can someone help me out here? =)
Hugs,
Louise
I have written this program which can be downloaded from
http://www.sendspace.com/file/3uqpq1
as a 8Kb zip file, but I get these 3 warnings
main.cpp:101: warning: comparison between signed and unsigned integer
expressions
Expr.cpp: In member function 'virtual std::string Expr::toString()':
Expr.cpp:14: warning: control reaches end of non-void function
Expr.cpp: In member function 'virtual double Expr::eval()':
Expr.cpp:12: warning: control reaches end of non-void function
I have no idea why I get the first one. The code in question is
for( int i = 0; i < expressions.size(); i++ ) {
() << endl;cout said:eval
}
and for the other two warnings it is
double Expr::eval() {}
string Expr::toString() {}
If I make them void, then the program breaks, and I don't know how to
make it work then.
Can someone help me out here? =)
Hugs,
Louise