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
Weighted Java algorith for string comparison
setup NAT on Cisco ASA
Documents Folder redirection on server 2008 R2 remote desktop services in SBS 2003 domain
Outlook 2007 Tasks sending out automatic status reports (updates) when attachments are opened
How to stop folder redirection on terminal server only
Can not get mysql to work with IIS7 Drupal and PHP
PL/SQL - how to dynamically retrieve next 5 years from sysdate
scripted uninstalls
How can I edit my Excel list to include only one entry from each domain name
can't change password through OWA 2010