R
remlostime
struct lineType
{
int x, y;
lineType(int tx, int ty)
{
if (tx == 0)
{
ty = 1 << 20;
tx = 1;
}
x = tx;
y = ty;
}
};
lineType line[30000];
when i compile it
error: no matching function for call to `lineType::lineType()
why?
{
int x, y;
lineType(int tx, int ty)
{
if (tx == 0)
{
ty = 1 << 20;
tx = 1;
}
x = tx;
y = ty;
}
};
lineType line[30000];
when i compile it
error: no matching function for call to `lineType::lineType()
why?