Hi All,
I am completely new to programming and am currently learning C using X-Code and an ebook I downloaded from Spiderworks.com
It's a real beginner course and I am stumbling at the first block.
I have downloaded the Xcode program which opens and runs fine.
However when using the simple example programs which are designed to simply display text on the screen.
When I press build and go i get another window showing that "build was successful" but there is no output of the relevant text.
Here is the code (remember it's only C):
#include <stdio.h>
void SayHello( void );
int main (int argc, const char * argv[])
{
SayHello();
SayHello();
SayHello();
return 0;
}
void SayHello( void )
{
printf( "Hello, world!\n" );
}
Please can someone tell me where I'm going wrong?
Many thanks in advance.
Parish
I am completely new to programming and am currently learning C using X-Code and an ebook I downloaded from Spiderworks.com
It's a real beginner course and I am stumbling at the first block.
I have downloaded the Xcode program which opens and runs fine.
However when using the simple example programs which are designed to simply display text on the screen.
When I press build and go i get another window showing that "build was successful" but there is no output of the relevant text.
Here is the code (remember it's only C):
#include <stdio.h>
void SayHello( void );
int main (int argc, const char * argv[])
{
SayHello();
SayHello();
SayHello();
return 0;
}
void SayHello( void )
{
printf( "Hello, world!\n" );
}
Please can someone tell me where I'm going wrong?
Many thanks in advance.
Parish