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
Popup not working in IE
Dot Net Written Test and Interview questions, Can any 1 suggest link
Sort Mysql table with recent entries
Replace sring on the first line and then replace ALL the following string(2 to eof)
Mac Mail only shows 90 days of deleted items
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Why Not able to read excel file in the Web application running on Windows7/Office2010?
Need HP DMI Utility
How to make IN operator to accept CSV which are varchar in SQL Server 2008
VNC server Ubuntu 10.04