[newbie]C code does not Run.
[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.