Results 1 to 9 of 9

Thread: Xcode use help

  1. #1

    chat19's Avatar
    Member Since
    Aug 09, 2007
    Posts
    115
    Specs:
    MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600
    Xcode use help
    Hey,
    So I just installed Xcode for Leopard onto my computer, and I have no idea how to use it. I have always used c++ visual 6.0 for xp, but I was tired of the issues it was having and wanted to switch. Could anyone give me a crash course (or tell me where to find one) on how to build and edit basic c++ applications?

    Thanks!
    "We, the Chinese people, draft the entire Woo-Tang Clan!"

  2. #2
    MacHeadCase
    Guest
    *Moved thread to appropriate forum - Not a Switcher question but Development*

  3. #3


    Member Since
    Dec 27, 2007
    Posts
    27
    i was wondering that too....

    you can do simple c++ programs in textedit and then run them through terminal.. i just learned that yesterday
    http://www.mac-forums.com/forums/showthread.php?t=95573


    but i find that process very clumsy and ineffective.. if xcode can do so many complicated things im sure it can compile and run simple c++ code .. and im wandering how

  4. #4

    chat19's Avatar
    Member Since
    Aug 09, 2007
    Posts
    115
    Specs:
    MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600
    that really isnt suffice for simple needs. I really do not like citrix or visual 6.0

    is it any better with other languages?
    "We, the Chinese people, draft the entire Woo-Tang Clan!"

  5. #5

    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Location
    Atlanta, GA
    Posts
    443
    Specs:
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    Try this:

    1.) Open XCode
    2.) Click File -> New Project
    3.) Scroll down a while on the project lists to 'Command Line Utility' section.
    *Note* You may need to click the carrot on the side to expand it to see all of the options.
    4.) Select C++ Tool
    5.) Pick a source directory for the project
    6.) Name the project

    Then the project viewer thing comes up.

    7.) Double click main.cpp and up pops XCode's editor.

    8.) Code the "Hello world thing"

    9.) Save

    10.) Click Build and Go in the toobar.

    Does that help?

  6. #6


    Member Since
    Dec 27, 2007
    Posts
    27
    yep i tried it a few days ago and got it
    except when i press run and go nothing happens.. i usually have to go to the folder and open the the build

  7. #7

    chat19's Avatar
    Member Since
    Aug 09, 2007
    Posts
    115
    Specs:
    MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600
    meh, I'll just use another program
    "We, the Chinese people, draft the entire Woo-Tang Clan!"

  8. #8

    chat19's Avatar
    Member Since
    Aug 09, 2007
    Posts
    115
    Specs:
    MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600
    but thanks for all the help!
    "We, the Chinese people, draft the entire Woo-Tang Clan!"

  9. #9


    Member Since
    May 09, 2008
    Posts
    2
    anyone know how I can add a space between my printout in binary. This is my code and the for loop will give me the correct readout I just cant get the output to put a space in between every four characters.#include <stdio.h>



    // int andfx(int i, int mask);
    int count;
    int i = 0x1b53;
    int mask = 0x8000;
    int j;






    int main (void)
    {
    printf("Hex value = %x,\t",i);
    printf("Binary value=");
    for (count =0;count<=16;count++)



    {
    if (i&mask)



    printf("1");
    else
    printf("0");
    mask = mask >> 1;











    }






    printf("\n");




    return 0;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Xcode stopped letting me run Xcode app on iPad
    By ildsarria in forum iOS Development
    Replies: 1
    Last Post: 11-09-2011, 03:15 PM
  2. XCode 4 and C++
    By applefan90 in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 03-22-2011, 01:12 AM
  3. How to use Xcode for C++
    By ripfrankwhite in forum OS X - Development and Darwin
    Replies: 6
    Last Post: 01-11-2007, 02:23 PM
  4. Xcode 1.5
    By alejandrico in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 06-03-2006, 05:56 PM
  5. XCode
    By meskue in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 05-21-2006, 02:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •