ok I know this sounds dumb but it really isn't working right!
this is my code:
#include <stdio.h>
int main()
{
printf("Hello World/n");
return 0;
}
I saved that as a .c file to my home directory
next I opened terminal.app, and this what I did and the problem that followed: (Soroshi is the name of my home directory)
Last login: Sat Dec 6 00:11:07 on ttys000
macbook-pro:~ Soroshi$ gcc hello.c -o hello.app
macbook-pro:~ Soroshi$ ./hello.app
Hello World/nmacbook-pro:~ Soroshi$
My issue is that the /n shouldn't have appered and the "macbook-pro:~ Soroshi$" should have appeared on the next line.
btw I'm using the gcc compiler that came with Xcode which I downloaded from the apple ADC website.
hope that all makes sense!
this is my code:
#include <stdio.h>
int main()
{
printf("Hello World/n");
return 0;
}
I saved that as a .c file to my home directory
next I opened terminal.app, and this what I did and the problem that followed: (Soroshi is the name of my home directory)
Last login: Sat Dec 6 00:11:07 on ttys000
macbook-pro:~ Soroshi$ gcc hello.c -o hello.app
macbook-pro:~ Soroshi$ ./hello.app
Hello World/nmacbook-pro:~ Soroshi$
My issue is that the /n shouldn't have appered and the "macbook-pro:~ Soroshi$" should have appeared on the next line.
btw I'm using the gcc compiler that came with Xcode which I downloaded from the apple ADC website.
hope that all makes sense!