declaration

S

Stuart Golodetz

mikethebike said:
Hi
how and where shall I declare $stips and i below?
Many thanks
Michael

I think you meant to write stips, not $stips.

For i, it's probably best to define it thus:

for(int i=0; i<16; ++i)
{
// etc.
}

Regards,
Stu
 
M

mzdude

mikethebike said:
Hi
 how and where shall I declare $stips and i below?
Many thanks
Michael
--------
   GLubyte stips[16][4*32];
    for (i = 0; i < 16; i++) {
           glPolygonStipple($stips[0]);
---------

../src/cit_x.cpp:354: error: ‘i’ was not declared in this scope
../src/cit_x.cpp:355: error: ‘$stips’ was not declared in this scope

I think you meant to write stips, not $stips.


Unless of course he's trying to pass the address in which case it
should be &stips[0]. Just too little information given.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top