bobbythompson
2009-11-30 18:57:39 UTC
{
int newdirection;
//no mirror present
if(orientation==0 && direction==6)
newdirection=6;
else if(orientation==0 && direction==3)
newdirection=3;
else if(orientation==0 && direction==9)
newdirection=9;
else if(orientation==0 && direction==12)
newdirection=12;
return newdirection;
}
main()
{
//declare variables
int orientation, direction, x, y, dir;
x = 0;
y = 1;
dir = direction(x, y);//call function
printf("%d", dir);
return 0;
}
I keep receiving the following error:
error: called object is not a function