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
Remove shortcuts possibility in a web page or to put in favorite
Windows 7 WGA says my legitimate copy is NOT GENUINE
Windows 2008 Network Load Balancing
Counting the number of NON EMPTY cells in a table using javascript
Send emails using listed, jquery
Microsoft ebs security server configuration
How to bypass UAC Pause during remote sessions (Windows 7)
WordPress FIle Manager w/ Database Integration
RAID problems on Intel SATA RAID controller
Asp.net: My DataPager crashes the application on next page, I get a Connection Error from the browser.