Amazon.com Widgets Assignment operator get the error.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 11:03:57 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Programming in Objective-C, 4th edition
| |-+  Chapter 4
| | |-+  Assignment operator get the error.
Pages: [1]   Go Down
Print
Author Topic: Assignment operator get the error.  (Read 123 times)
EthanChu
Newbie
*
Posts: 5


Email




« on: February 02, 2013, 07:58:40 PM »

Please kindly help. Thanks
I got the error message  -> Parse issue: Expected expression

int i1, i2 = -150;
        i1 = 5;                 //error
        i2 / = i1 + i1;      //error                                 
        i2 / = 75 + 25;   //error

Any setting in Xcode i need to known?π
Logged
EthanChu
Newbie
*
Posts: 5


Email




« Reply #1 on: February 02, 2013, 08:57:08 PM »

 Shocked I found the problems
The assignment operator
 a /= b + c; ---> it's ok. But
 a / = b + c; ----> It's fail, the space between "/" and "=" will got the error.
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.