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
XP Mode - usb software key not working
Netapp - increased LUN volume - resized to gain space - but windows server has not picked up change - what am i Missing please
MS Dynamics 4.0 Outlook Configuration - Microsoft Dynamics CRM server is not available
Cisco ASA 5505 not passing traffic (Possible NAT or ACL issue)
number the records in 4gl query
Unattended Windows 7 Installation answer file not working
Safari 5 Crashes immedietly
CCSP certification
PHP.ini file 'display_errors' is set to Off but errors still appear on page?
How to make Delphi 2007 application compatible with Windows 7 OS?