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
Error in installation of Oracle 11g R2 on RHEL 5.3
Laptop for AutoCad
Can I use the SendKeys command in Excel VBA to interact with other applications other that Microsoft Office?
PrivateDisk volume for Client Security Solution 8.21 on ThinkPad
SSG VPN dailup setup (Shrew VPN Client) , hitting a brick wall.
SNMP polling
Import-Module ServerManager
Migration of SQL Server 2008 database to oracle
How do I modify this php script to send a confirmation?
trouble with user clicking before content loads ASP and Javascript