Microsoft
Software
Hardware
Network
Question : c strcpy
Hi, I have a question about c.
I changed one line code.
Original code is :
strcpy(hsCust, ('G' !=ptComBuf->sCust[0]) ? "HP":"GE");
Now I need check three companies. So I change the code like this:
strcpy(hsCust, ( 'G' =ptComBuf->sCust[0] ) ? "GE" :(( 'H' = ptComBuf->sCust[0] ) ? "HP" :"AP"));
After I compiled, it give me this error:
Modifiable lvalue required for assignment operator.
Any inputs will be appreciated.
Answer : c strcpy
Should be
@interface frisbee : NSObject {
int fx,fy;
UIImageView frisImageView;
}
@end
The base class is NSObject. @interface and @end are the keywords. Instance variables (fx, fy, frisImageView) should be in {}.
Random Solutions
MSExchangeIS Event ID 9582 every hour - on Exchange 2003
Sharepoint Designer 2010 install error "Microsoft Office 2010 does not support upgrading from a prerelease version of Microsoft Office 2010"
the system cannot end this program because it is waiting for a response from you
Exchange server 2007 large mailing
Is there any code of SATA interface in VHDL?
Scheduling script to run every 10 minuts
How to draw a cardioid in Opengl?
Unable to install any framework .NET in XP Mode (Virtual PC)
Windows 7 WGA says my legitimate copy is NOT GENUINE
Motorola MC50 Activesync Problem