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
Webrequest POST
SBS 2008 How to Change the Company web Page Calender Date Format
Sysprep service pack 3
Blackberry Enterprise Server - not sync contacts for one user?
Event ID 37 Microsoft-Windows-Kernel-P
rocessor-P
ower
Exchange 2007 Certificate
Access to OWA 2010 is very slow
Server Recommendation (File Server & Terminal Server)
circular logging for Exchange 2003 backend servers
Code in SQL 2000 not parsing/running in SQL 2005 Query Analyzer