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
Reverse DNS does not match SMTP Banner
Cisco Unity Express to Trigger MWI on overlay DN
Exchange 2003 Email Delays
View generated source with vb.net httpwebrequest
Intel Sata RAID controller on RHEL 4 problem
XY Chart Label feature
Sharepoint Webpart page load event issue
To change asni_padding setting of a column.
MS Access not connecting to Oracle11g using ODBC
Filling a TextBox on a Form with Data from a Field from an SQL Database Table in Visual Studio 2008