PDA

View Full Version : Data type error



MrShahi
16th July 2008, 12:26
Hello .........
I have a simple problem i.e I wana use a varriable globaly with register keyword ......
I mean to say

class Myclass
{
...........
register int value;
..............
}

but whenevr I compile it , It gives error
error: storage class specified for ‘value’
:confused:
I don't know what is wrong ????
anyone has any idea??????????????????????????????????:(

caduel
16th July 2008, 15:01
you can't say "register" for variables in a struct