Author |
Message |
lindsay
|
Posted: Tue Oct 09, 2007 10:15 am Post subject: cannot execute |
|
|
I'm a beginner. I cannot execute my program which is as follows:
# include <stdio.h>
int main(void)
{
printf("beni/nDilek/nProgramladı")
return 0;
}
what's the matter? what should I do? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Mazer

|
Posted: Tue Oct 09, 2007 10:54 am Post subject: RE:cannot execute |
|
|
It helps to tell us what kind of compile/runtime errors you get.
Try taking out the space between "#" and "include".
On a side note, the the escape character is the backslash, so that should be "\n" in your string, not "/n". |
|
|
|
|
 |
lindsay
|
Posted: Tue Oct 09, 2007 11:32 am Post subject: Re: cannot execute |
|
|
Thanks a lot I've try  |
|
|
|
|
 |
wtd
|
Posted: Tue Oct 09, 2007 2:15 pm Post subject: RE:cannot execute |
|
|
Also, you may wish to use code tags in your posts. |
|
|
|
|
 |
OneOffDriveByPoster
|
Posted: Thu Oct 11, 2007 5:38 pm Post subject: Re: cannot execute |
|
|
The space between # and include is okay IIRC.
There is a missing semicolon after the printf() call. |
|
|
|
|
 |
|