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
moon_patrol
PowerBuilder PDF viewer
SharePoint 2010 - MasterPage - How to create a "header" for Branding above the ribbon so Visitors can view
how to parse this text log into another txt format
How to create a Microsoft 2003 Two-way trust using stub zones?
pivot table table problem...
DCDIAG DC ERRORS
Record / Log SQL Queries
Oracle -- SQL Results ?
Google Apps Gmail and legacy MS Exchange (SBS) 2003 Synchronisation