Seeing results of my code in Xcode... totally new please help

This is a discussion on Seeing results of my code in Xcode... totally new please help within the C Programming forums, part of the General Programming Boards category; Hello all and thank you in advance. I have installed Xcode tools and I'm trying to learn how to create ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    16

    Seeing results of my code in Xcode... totally new please help

    Hello all and thank you in advance. I have installed Xcode tools and I'm trying to learn how to create applications that just do simple things so that as I code programs to learn C, I can physically see the results of what I have coded. I am having trouble doing this with Xcode tools. I have been struggling with this for a while and here is where I am:

    Xcode tools > New Project > Command line utility, Standard tool

    This creates my C document and the source file:

    Code:
    #include <stdio.h>
    
    int main (int argc, const char * argv[]) {
        // insert code here...
        printf("Hello, World!\n");
        return 0;
    }
    Now I know I need to create a NIB file of sorts to physically display the "Hello, World!" but I do not know how to do this. Thank you.

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,651
    You can see the console within the Xcode debugger by going to the Run menu and choosing "Console" to show the output window.

    I don't know anything about NIBs yet though.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I have to jet, so I don't know why I even reply at all... BUT, did you consult the manual to this program or IDE or API or whatever Xcode is?

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    16
    Master5001--

    Yeah, I've struggled with that for quite a while. The thing is written in language that I don't understand. This is my first programming undertaking, and it seems like I need a pretty in depth knowledge of this language and its features before I can even understand the help documents. It's frustrating.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    16
    Rags to riches--

    Thank you SO much for that tip. I'm sure I'll learn more about this compiler over time, but that was exactly what I needed to be able to test my stuff and learn!

  6. #6
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Helped me, too.

    Thanks, rags to riches. (I went through registration process so that I could thank you.)

  7. #7
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,651
    Glad I was able to help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  2. Replies: 1
    Last Post: 03-21-2006, 06:52 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21