• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Command Line I/O
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Command Line I/O


  • Subject: Command Line I/O
  • From: Jesse Thompson <email@hidden>
  • Date: Sat, 25 Oct 2003 11:23:57 -0700

I'm having issues with command-line I/O & Xcode.
In PB,

#include <stdio.h>

int main ()
{
    int i;

    printf( "Enter a number\n" );
    scanf( "%d", &i );

    return 0;
}

Would have printed the message and then waited for input. In Xcode however, a blank window pops-up, and does nothing. If I hit a carriage return, the message is printed and then the system exits.
What am I missing here? Can Xcode no longer do C / C++ command-line I/O?
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Command Line I/O
      • From: chris friesen <email@hidden>
  • Prev by Date: Re: Previous bug reports filed under NDA
  • Next by Date: Re: QT in Xcode
  • Previous by thread: Re: Previous bug reports filed under NDA
  • Next by thread: Re: Command Line I/O
  • Index(es):
    • Date
    • Thread