C++ project works, but where is the .app for it?  (Newbie question)

Friends, a simple question:
I open xCode 3.0 on Leopard and I make a new project (named "count2") using the command line utility C++ tool and enter the following application:
#include <iostream>
using namespace std;
int main() {
int i, n;
// Get a number from the keyboard and initialize i.
cout << "Enter a number and press RETURN: ";
cin >> n;
for (i = 1; i <= n; i++) // For i = 1 to n,
cout << i << " "; // Print i.
return 0;
The application compiles and runs well.
So my question is, where is the application that I can take from this project, and move to my Applications folder so every time I want to use this application I can simply double click it? I searched for count2.app, but cannot find it.
Thanks amigos, -Migs

Excellent Psycho. I have made a small Xcode tutorial and would like to post it here. Where do you suggest? Following is the text:
C++ Programming on Macintosh OS X Leopard
Many of you will want to get from your C++ textbook to a working application on your Mac quickly. Fortunately the Mac has an extremely powerful integrated design environment (IDE) that is available for free on every Mac that runs OS X, It’s called Xcode Tools. It can develop in many more languages than C++ so at first it may seem a bit overwhelming, but later, as your needs grow it will be a formidable tool in your arsenal. For now, all you need is the installer DVD that came with your Mac or a Mac OS X install DVD. (If you don’t have either of these you can also download the installer from Apple here http://developer.apple.com/tools/download/) I’m going to show you how to install Xcode for Mac OS X 10.5 (Leopard) from the DVD, but the process is very similar for other previous versions of the Mac OS. Getting to your first running application is a little convoluted, so that is what this tutorial will help you to accomplish quickly.
First you will install Xcode tools on your Mac since it is not installed by default when you upgrade your OS or install the OS for the first time. (Just to be sure it wasn't previously installed you can check by opening your Macintosh volume (not your User folder) and seeing if it contains a folder named “Developer” . If not, you need to go ahead and install it as follows:
Insert your Mac OS X DVD and open Optional Installs. Open Xcode Tools. Double click the XcodeTools.mpkg package and install it on your Mac.
In order to make using the Xcode IDE easier to access, open the Developer folder on your Mac, then the Applications folder and drag Xcode.app to your dock.
Now you are ready to begin coding, so open Xcode Tools from your Dock and dismiss the “Welcome to Xcode” pop up. Select File/New Project and open Command Line Utility in the New Project Assistant. Now select C++ Tool and click Next. Choose a name for your project (It can be the name of your program) and were to save it. A project window will appear with the name you chose for your project. You may wonder what all the Groups and Files on the left side of the window are for, and though overwhelming, you must know that the Xcode Tools IDE which you are using allows you to make full blown applications which require all these parts, and not just the code you want to learn with in your first “Hello World” program. Fortunately all we need to focus on is one file that will be where you will edit your code. On the left hand pane entitled “Groups & Files” open the Source folder, then select the “main.cpp” file and in the same window click on the “Editor” button. You will also need a Console to view your program output, so in the main menu select Run/Console and open both windows so you can edit and view your code and your results simultaneously. Notice that the main.cpp window already has a sample program listing inside as a help to get you started. Here you can replace everything with your own code, and that is what you will do on your own, but for now let’s use the code they have in the default just to show you what to do next to get output out of the application. Click the “Build and Go” Button on the editor and watch the Console to see the results of your code execution. Now that you are done, go ahead and choose an example from your textbook and make a new project from scratch. Doing so will cement the steps in your head. -Migs (Miguel Reznicek)

Similar Messages

  • My DVD drive has stopped working. Where are the drivers for HP GH60L?

    My DVD/CD drive has stopped working.  Where are the drivers for HP GH60L?        HP Pavilion Elite  HPE-350T.   

    Hi,
    Please try the following first:
       http://support.microsoft.com/mats/cd_dvd_drive_problems/en-us
    Hope this helps.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Where is the app for asha 501 ???

    Where is the so promised whatsapp for asha 501 .... you guys just bluffed during the launch of asha phone.... And now instead of giving whatsapp compatibility you are releasing new products on oct 22 ? this is funny. First concentrate on 501 matter and later on release new phones.
    very soon very soon how many days,months,years...... Frnds dont buy nokia . its just cheating people in this way.their phones are not supporting simple apps also......

    also what about asha os1.1 update that promised voip and whatsapp support for asha 501 in diwali? is it coming or we get another date? n here is the link of all the promises and requirements discussions.http://nokia.com/t5/Asha-and-other-Nokia-Series-30/Asha-501-Whatsapp-to-be-released-soon-announced-i...

  • Dictation works, but where is the text?

    Hi.
    Everything seams to work like Apples setup instructions say. The microphone color and movement when I talk is there but when done and after I click stop dictation nothing happens: No text while talking or after done. I activated Enhanced Dictation, it dowmloaded extra software and dictation worked
    right after that once. Returning to do more: nothing! I checked all settings even used a different mic but no text is happening.
    I am using a Pro Shure mic going into my Alesis iO|26 interface into my Mac Pro running 10.9 Mavericks. I also tried my iSight which
    I used when Enhanced Dictation installed the first time = perfect transscription. Now nothing. I rechect all settings over and over. Used TextEdit then Pages blanks, also e-mail. Any idea what is going on here?

    Thank you Steve for your caring response and link.
    As per your advice I just send the following to their Mavericks, Mac Pro support.
    Seeing that lots of people have problems getting Dictation to work in Mountain Lion and now in Mavericks I respectfully request that you check and try to fix this problem.
    As a continuing (since 1995) Apple user and after lengthy research and trying numerous suggested fixes I have come to the conclusion that there might be a problem with Dictation that only the great Apple technicians can solve. Until now I have been able to get Dictation to work only intermittently.
    I can see that this ingenious application would be of great help to many many people using their Apple computers. Please please have a look at this! Thank you for many years of the great Apple experience.
                                                                                                                                               Walter Wedler

  • My mac starts ok and then only the mouse works. None of the apps will respond to anything. Can anyone help?

    Hi my mac starts ok and the mouse works but none of the apps respond. Can anyone help?

    Hello Thorpec
    Try out the steps in the article below to troubleshoot issues with your Mac and is also good for performance issues.
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/ts1417
    Regards,
    -Norm G.

  • Where is the icon for my email?

    I use outlook express but where is the icon for it?

    Firefox does not have one. You can add an icon to open the email program of your choice by using the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on.

  • I have an iPhone 5 and a PJ205 ipico Handheld LED Personal Projector for Apple iPhone 4. I bought the apple adapter but now need the app. Apple's App Store doesn't have it anymore, where can I get one?

    I have an iPhone 5 and a PJ205 ipico Handheld LED Personal Projector for Apple iPhone 4. I bought the apple adapter but now need the app. Apple's App Store doesn't have it anymore, where can I get one?

    Hi Chris.
    It's asking you for my apple id password. not going to give that out, sorry.
    However I did try this projector on my mother in laws iphone 4 and on my old iphone 3. ipico software isn't needed. plug and play any video through standard movie player or camera saved video.
    I tried on my girls iphone 5 with the adapter. The ipico software and projector doesn't work on this phone.
    Hope this helped you. Better to buy a used iphone 3 or 4 and use it for video storage.
    I also found that the battery on these projectors are a joke (30-60mins max). I rigged a longer lasting battery on the outside and keep it plugged in while using. This doesn't charge the phone though so I replaced the battery in the old iphone 3 and now get at least a full length movie from it. Great in bed projected onto the ceiling.
    William
          From: Apple Support Communities Updates <[email protected]>
    To: blackyam <********@yahoo.com>
    Sent: Tuesday, January 13, 2015 4:36 AM
    Subject: https://discussions.apple.com/iPhone Accessories - I have an iPhone 5 and a PJ205 ipico Handheld LED Personal Projector for Apple iPhone 4. I bought the apple adapter but now need the app. Apple's App Store doesn't have it anymore, where can I get one? https://discussions.apple.com/f9xu1m-7t1g5-gcrif
    Apple Support Communities updates#yiv9918778479 a, #yiv9918778479 a.yiv9918778479aapl-link, #yiv9918778479 a.yiv9918778479aapl-link:link {text-decoration:none;color:#08c;}#yiv9918778479 p #yiv9918778479 a.yiv9918778479aapl-link:hover {text-decoration:underline;}#yiv9918778479 body  _filtered #yiv9918778479 {}#yiv9918778479 _filtered #yiv9918778479 {}#yiv9918778479 * .filtered99999 #yiv9918778479 * .filtered99999 #yiv9918778479 * .filtered99999 #yiv9918778479 * .filtered99999 #yiv9918778479 #yiv9918778479 _filtered #yiv9918778479 {}#yiv9918778479 td .filtered99999 {padding-left:20px!important;padding-right:20px!important;}#yiv9918778479 table #yiv9918778479 table .filtered99999 , #yiv9918778479 table .filtered99999 tbody, #yiv9918778479 table .filtered99999 tr, #yiv9918778479 table .filtered99999 td #yiv9918778479 td img {max-width:100%!important;height:auto!important;}#yiv9918778479 td .filtered99999 {}#yiv9918778479 a.yiv9918778479button #yiv9918778479
    |
    |
    |
      |
    |
    |
    Apple Support Communities
      |
    |
    |
    Chris  has posted in the iPhone Accessories community.
      |
    |
    |
    |
    I have an iPhone 5 and a PJ205 ipico Handheld LED Personal Projector for Apple iPhone 4. I bought the apple adapter but now need the app. Apple's App Store doesn't have it anymore, where can I get one?
    blackyam...thank you for the ipico software.  When I try to authorize my computer for it it says that I need to fill in the password for *******@yahoo.com.  I can't seem to get it to work with my email and password.  Do you know anything about this or do you know *******@yahoo.com's password?thx, Chris
      |
    |
    |
    To post a reply, go to the discussion in Apple Support Communities.
    |
    |
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved
    Privacy Policy
    Terms of Use
    Apple Support
    <Email Edited by Host>

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • Apple Tv (3rd generation) says it is connected (via ethernet), but none of the app, or channels, will work. They all say they are unvailable, try again later. The only thing that seems to work is iTunes. (I live in a dorm if that helps)

    Apple Tv (3rd generation) says it is connected (via ethernet), but none of the app, or channels, will work. They all say they are unvailable, try again later. The only thing that seems to work is iTunes. (I live in a dorm if that helps)

    Its not properly connected to the network. Most school networks require login via webpage, which isn't possible as ATV has no browser. You will need to contact the IT dept or the network provider.

  • I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I updated via my iPhone 4s.  The apps were on my iPhone 4s.  That's all the information that I have.  The update to ios7 seems to have gone smoothly - everything else is working, phone texting, email, internet, etc.  But all of the apps I had installed over the past year are no longer showing up as shortcuts.  No facebook, no twitter, no espn, etc.  They are all still listed in my app store as purchased, but the shortcuts and my folders are gone.  Thanks.

  • My ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    my ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 7.1.x
    iPhone 4S                                    iOS 8.x.x
    iPhone 5                                      iOS 8.x.x
    iPhone 5c                                     iOS 8.x.x
    iPhone 5s                                     iOS 8.x.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 8.x.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 8.x.x
    iPad 3                                          iOS 8.x.x
    iPad 4                                          iOS 8.x.x
    iPad Mini & Mini Retina                iOS 8.x.x
    iPad Air                                        iOS 8.x.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • When i make calls, all i can hear is static, and when i plug in headphones or turn the speaker on, it still doesnt work. but facetime, music, an apps sound still work. help? iphone 5

    when i make calls, all i can hear is static, and when i plug in headphones or turn the speaker on, it still doesnt work. but facetime, music, an apps sound still work. help? iphone 5

    Hello Delaney1130,
    It sounds like you are getting static on both the receiver and the speaker when you make a call. I would use the troubleshooting from the following article to help resolve the issue named:
    iPhone: Troubleshooting issues making or receiving calls
    https://support.apple.com/kb/TS3406
    Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    Check your phone settings:
    Check your Do Not Disturb settings: Tap Settings > Do Not Disturb.
    Check for any blocked phone numbers: Tap Settings > Phone > Blocked.
    See if Call Forwarding is turned on: Tap Settings > Phone > Call Forwarding.
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update.
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    If the iPhone 4 or iPhone 4s is on the Verizon network, dial *228 from the iPhone and select option 2 to update the Preferred Roaming List (PRL). The PRL determines the cellular towers the phone uses for cellular service, selecting those with the best signal strength.
    Reset the network settings: Tap Settings > General > Reset > Reset Network Settings.
    Try to make or receive calls in another location.
    Attempt to isolate to one network band:
    If you're having the issue on LTE, disable LTE, if possible, and try again.
    If you're having the issue on 3G/4G, disable 3G/4G, if possible, and try again.
    Contact the carrier to check the following:
    Your account is properly configured to use the specific iPhone that has the issue.
    There are no localized service outages.
    Your account doesn't have a billing-related block.
    Your calls don't have errors on the carrier system.
    Restore the phone as new.
    If the above steps don't resolve the issue, go to an Apple Retail Store, carrier, Apple Authorized Reseller, or contact AppleCare to send the phone in for service.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • HT201493 I can't sign in to find my friends , it says I have no Internet connection but I do , the app used to work , help please

    I can't sign in to find my friends , it says I have no Internet connection but I do , the app used to work , help please

    when you say there is an Internet connection have you used safari?  Or does the phone just display a data connection (i.e. 3g/4g)?  You could try a couple of things if it is the latter 1. turn off cellular data than turn it back on.  2. turn on airplane mode and turn it back off.  I type these assuming you've tried resetting network connections.

  • My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem need some but where is the rest of my storage being used?

    My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem needs some but where is the rest of my storage being used?

    Hi CPI Pierre,
    You can determine what is using the memory in your iPad Air by looking at Settings > General > Usage > Manage Storage.
    If you are having issues with insufficient memory you may want to troubleshoot using the steps in this article -
    iOS: "Not enough free space" alert when trying to sync - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT204003 does the passbook app work on the iPhone4 because I downloaded the apps for it but I continue to see the original screen for the app and I can't find passbook in my settings.

    does the passbook app work on the iPhone4 because I downloaded the apps for it but I continue to see the original screen for the app and I can't find passbook in my settings.

    Some time in the future (Starbucks Tweeted the other day "by the end of the month") the Starbucks app will be Passbook enabled. When that time comes, you will log into the app with your credentials, select your Starbucks card, and you should be given an opportunity to add that card to Passbook at that time. From there, whenever you walk into a Starbucks the alert will be displayed on the lock screen, just slide your finger across the the alert and show your card to pay.
    Now, I have not seen the new app, of course, so I am just speculating based on how the Walgreens, Fandango and Target apps work. Also, I am not sure yet if this will work in any Starbucks, or just the one that you consider your favorite, or primary location. Again, that is just based on how the other apps seem to work. We'll see.

Maybe you are looking for

  • VPRS determination

    Hi all, usualy  the  VPRS  calculates the  values  based  on  the  values  in  MBEW  table. The  problem  is  that  MBEW  table  is  only  updated  when  there  is  a  inbound  delivery  but  we  create  the  sales  orders before  the  inbound  deliv

  • Using Excel as data source

    Hi, i have created a crystal report that uses Excel as data source. Reason i used excel is for easy updating of data by non IT users. The report runs perfectly on my computer, but when i upload it to Infoview, there is error when i run the report fro

  • Podcast Album Artwork won't upload.

    My first podcast was uploaded about a week ago and I haad no idea what I was doing, I just assumed (I use libsyn for my host) where it said image would be the art work, I now know that it wasn't. So i've search everywhere on libsyn but I can't find t

  • B1if Sending HTML Email

    Is it possible to send HTML emails through a sndEmail atom?  If so, how do we configure the atom?

  • ACME Video EJB Oracle 8i deployment error.

    An error occurs while stub compilation. Tested using both 1.1.8 and 1.2.2 versions. How can I solve this? Thanks, Sean AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version. Copyright (c) 1997-1998 Borland International. All Rights Reserved. Copyr