Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Random Numbers in C
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nabl" data-source="post: 1038386" data-attributes="member: 43512"><p>I assume you figured it out, but just in case you didn't, the problem is that you're using the assignment operator (<span style="font-family: 'Lucida Console'">=</span>) in your comparisons instead of the correct <span style="font-family: 'Lucida Console'">==</span> operator. Also, considering that you want to print <em>either</em> one line of text <em>or</em> the other, you might want to consider using an if/else construction.</p></blockquote><p></p>
[QUOTE="nabl, post: 1038386, member: 43512"] I assume you figured it out, but just in case you didn't, the problem is that you're using the assignment operator ([font="Lucida Console"]=[/font]) in your comparisons instead of the correct [font="Lucida Console"]==[/font] operator. Also, considering that you want to print [i]either[/i] one line of text [i]or[/i] the other, you might want to consider using an if/else construction. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Random Numbers in C
Top