![]() |
| ||
| Trouble with pointers Hi, In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union. struct intpair {I can't seem use the data in psd. Can someone please help? Thanks |
| ||
| Re: Trouble with pointers In line:20 ie printf("%d",psd.y);psd is used to access y by dot(.) operator which is wrong because psd is a pointer and to access y you must use ->(arrow operator) ie printf("%d",psd->y); |
| All times are GMT -4. The time now is 4:41 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC