Hello! I'm presently trying to port a school project from g++ to VC and I'm having a few problems. Right now I'm trying to port a simple vector class.
#include <stdio.h> //sprintf
#include <math.h>
#include <iostream.h>
#include <limits.h>
class vector2 {
public:
...constructors
...class functions
//For input and output
istream &input(istream &is) {
is.ignore(INT_MAX,'(');
is >> x;
is.ignore(INT_MAX,',');
is >> y;
is.ignore(INT_MAX,')');
return is;
}
};
this generates errors:
>syntax error : missing ';' before '&'
>'istream' : missing storage-class or type specifiers
Are there a lot of differences in syntax within class declarations in VC compared to g++?
Do I have to tell the linker to include the math library somhow?
Well, any help is appreciated
If you know of any web pages dealing with moving from gcc&g++ to MSVC feel fre to point me to em