• 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
[newbie]C code does not Run.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie]C code does not Run.


  • Subject: [newbie]C code does not Run.
  • From: kunikyo <email@hidden>
  • Date: Wed, 9 Oct 2002 23:26:36 +0900

Hi,

I understand that Objective-C is super set of ANSI C.

I wrote following C code on Project Builder main list made by selecting "Cocoa Application".

int main(int argc, const char *argv[])
{
int c;

c = getchar();
while (c != EOF) {
putchar(c);
c = getchar();
}

}

Build is OK. But this code does not work. I input a character by keyboard but this
code does not work. Nothing was displayed.

I tried Foundation Tool and Standard Tool, but results are the same.

I use
Max OS X version 10.2.1
Project Builder version 2.0.1(July 2002 Developer Tools)



Regards,
Tomoo Kunikyo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [newbie]C code does not Run.
      • From: Nicholas Riley <email@hidden>
    • Re: [newbie]C code does not Run.
      • From: Cameron Hayne <email@hidden>
    • Re: [newbie]C code does not Run.
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Cocoa newbie query
  • Next by Date: Re: Cocoa newbie query
  • Previous by thread: Re: Cocoa newbie query
  • Next by thread: Re: [newbie]C code does not Run.
  • Index(es):
    • Date
    • Thread