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
Best way to Show/Hide a Div (Jquery, JavaScript)
FTP - without log in
SNAPVIEW.OCX
Java Scripted Roll-over Sound Files do not work in Google Chrome
Best wireless access to an HP Deskjet F4500 - time capsule or no?
Multiple Outlook profiles
how do you get eclipse debugger to step beyond "source not found"
Mapping to skydrive via windows explorer
Microsoft Exchange 2010
receiving read receipts a lot