Originally Posted by
Salem
Post more of what you tried.
Posting an error message about a missing ; then posting code which has no ; at all doesn't help us figure out what the problem is.
I apologize, I simply wanted to focus on the part where the error lies. Again I had to cut a code because it is huge I just left most important parts.
Code:
vector<struct> look(double d, int xw, int yh, double dh)
{
struct pt
{
int xc;
int yc;
double h;
};
vector <pt> v;
pt p;
...
for ( )
{
.....
v.push_back(pt);
}
}
I have problem that I cannot define return value of the function look as vector<struct>(error C2332 'struct' missing tag name). Neither can I defined as vector<pt> because I did not declare it. The problem is in the fist line.