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
Beginner C++ question
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="cuhnool" data-source="post: 1019338" data-attributes="member: 57459"><p>Go to <strong>Project</strong> >> <strong>Add to Project...</strong></p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14304AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Press <strong>Command+Shift+G</strong> to bring up the "Go to the folder..." pane. Type in <strong>/usr/lib</strong>. Click Go</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14343AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Scroll down until you find the <strong>libcurses.dylib</strong> file. Click Add</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14403AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Click Add again</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14415AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Replace the highlighted line with <strong>curses.h</strong></p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14430AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Delete the highlighted line</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14454AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Delete the highlighted line</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14504AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Click <strong>Build and Go</strong></p><p></p><p>Click the <strong>Console</strong> button (the arrow is pointing to it)</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14518AM.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Go to the Console, and type in an equation using the five operators. The equation I used was <strong>5 ^ 5</strong> which came out to 3,125. I then typed in <strong>n</strong> to end the program.</p><p></p><p style="text-align: center"><img src="http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14608AM.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>--</p><p></p><p>Hope this helps you out! Should work for you now <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="cuhnool, post: 1019338, member: 57459"] Go to [b]Project[/b] >> [b]Add to Project...[/b] [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14304AM.png[/img][/CENTER] Press [b]Command+Shift+G[/b] to bring up the "Go to the folder..." pane. Type in [b]/usr/lib[/b]. Click Go [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14343AM.png[/img][/CENTER] Scroll down until you find the [b]libcurses.dylib[/b] file. Click Add [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14403AM.png[/img][/CENTER] Click Add again [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14415AM.png[/img][/CENTER] Replace the highlighted line with [b]curses.h[/b] [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14430AM.png[/img][/CENTER] Delete the highlighted line [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14454AM.png[/img][/CENTER] Delete the highlighted line [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14504AM.png[/img][/CENTER] Click [b]Build and Go[/b] Click the [b]Console[/b] button (the arrow is pointing to it) [CENTER][img]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14518AM.jpg[/img][/CENTER] Go to the Console, and type in an equation using the five operators. The equation I used was [b]5 ^ 5[/b] which came out to 3,125. I then typed in [b]n[/b] to end the program. [CENTER][IMG]http://i570.photobucket.com/albums/ss144/TH3_M0T/Screenshot2010-03-17at14608AM.png[/IMG][/CENTER] -- Hope this helps you out! Should work for you now :D [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Beginner C++ question
Top