Recent content by JOZ
-
J
Fixing VHDL Errors for Traffic Light System
Hi I've got a problem with VHDL code its coming up with a lot of errors saing that there's undefined symbols, so I am pretty sure that the error is to do with defining things/instantiation, below is all the code for both the files that are being used...- JOZ
- Thread
- Errors Light System
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
J
Conversion from 'Shape*' to non-scalar type 'Shape' requested
So i have another problem now... i need to go through my list and find every time one bit of the data struct equals a value do something.. what i want to do it else if(key==('B')) { clearviewport(); do{ shape=lst_next(list)...- JOZ
- Post #10
- Forum: Programming and Computer Science
-
J
Conversion from 'Shape*' to non-scalar type 'Shape' requested
Yeah i did i forgot about that and i did have issues with memory allocation and you just solved my problem i was about to post, and yeah i do need to use it as a pointer it gets passed arround to heeps of fuctions Thanks- JOZ
- Post #9
- Forum: Programming and Computer Science
-
J
Conversion from 'Shape*' to non-scalar type 'Shape' requested
So I've gotten rid of the error i thaught i had tried this before without it working... but it works now void shp_draw(Shape *shape) { if(shape->tShape==(2)) drawBox(shape); else if (shape->tShape==(1)) drawEllipse(shape); else drawCircle(shape); }- JOZ
- Post #7
- Forum: Programming and Computer Science
-
J
Conversion from 'Shape*' to non-scalar type 'Shape' requested
The draw functions are static void drawCircle(Shape shape) { if(shape.filled==(1)) { setfillstyle(SOLID_FILL, shape.color); fillellipse(shape.centerX, shape.centerY, shape.sizeX,shape.sizeX); } else { setcolor(shape.color)...- JOZ
- Post #6
- Forum: Programming and Computer Science
-
J
Conversion from 'Shape*' to non-scalar type 'Shape' requested
I get this error and I don't know how to get rid of it... I declared the Shape struct typedef struct { int tShape; int centerX; int centerY; int sizeX; int sizeY; int color; int filled; } Shape; When I try to send a Shape struct called shape to a...- JOZ
- Thread
- Shape Type
- Replies: 10
- Forum: Programming and Computer Science