|
From: Per W. <pw...@ia...> - 2004-09-21 10:22:38
|
First of all, I don't understand why you show two main() functions.
Second, to define printf() you should #include <stdio.h> and _not_
<stdin.h>
/Per W
On Tue, 21 Sep 2004, hao li wrote:
> I have just downloaded
>
> Dev-C++ 4.9.9.0 and try it for funtionality.
> When compiling the basic C source codes it make me trouble
> I used create new scource file and
> I tried this programs here copied from the helpfile
>
> #include <stdin.h>
> main()
> {
> printf("Hello World\n");
> }
>
> and
>
>
> main() /* main function heading */
> {
> printf("\n Hello, World! \n"); /* Display message on */
> } /* the screen *
>
>
> when compiling it i got the error message
>
> in fuction `int main'
> printf undecleared
>
> does anyone know whats wrong???
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
|