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
SAP RFC returning Invalid Data Type
Image within a Div is upside down... Need to have it align bottom and "STAY" within DIV boundaries
making first word bold
Need to know all ports associated with network shares
Backup Exec 12 - Catalog issue
change SQLserver 2005 to mix mode
Setting up my first database driven web site
dynamic popup with checklistbox using ajax control toolkit
Apple Mail Notes keep reappearing after deletion
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss