While trying to run the code below:
I get bunch of errors:Code:#ifndef DTW #define DTW #include <iostream> #include<vector> #include<algorithm> #include<cmath> #include <deque> #include <sstream> #include <windows.h> typedef double floattype; using namespace std; class MathUtil { public: static inline int min (int x, int y ) { return x < y ? x : y;} static inline int max (int x, int y ) { return x > y ? x : y} };
1>d:\dtw\dtw\dtw.h(33) : error C2062: type 'int' unexpected
1>d:\dtw\dtw\dtw.h(33) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
1>d:\dtw\dtw\dtw.h(33) : error C2143: syntax error : missing ')' before '}'
1>d:\dtw\dtw\dtw.h(33) : error C2143: syntax error : missing '}' before ')'
1>d:\dtw\dtw\dtw.h(33) : error C2059: syntax error : ')'
1>d:\dtw\dtw\dtw.h(33) : error C2143: syntax error : missing ';' before '}'
1>d:\dtw\dtw\dtw.h(33) : error C2238: unexpected token(s) preceding ';'
1>d:\dtw\dtw\dtw.h(34) : error C2628: 'MathUtil' followed by 'int' is illegal (did you forget a ';'?)
Can anyone help me to solve this problem?
Thanx in advance!!



LinkBack URL
About LinkBacks



CornedBee