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
SQL 2008 upgrade creates two separate instances
What are major differences between VB.NET and C#.NET?
Server 2008 NLB problem
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected
lotus script to check the groups
ZEBRA S4M LABEL PRINTER DISPLAY PAPER OUT AND HEAD OPEN
Google Chart corechart help
Could Linkserver provide me DB schema?
Apache - Tomcat TCP Connection problem - CLOSE_WAIT / FIN_WAIT_2
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field