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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
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". |
|
|
|
|
![](images/spacer.gif) |
lindsay
|
Posted: Tue Oct 09, 2007 11:32 am Post subject: Re: cannot execute |
|
|
Thanks a lot I've try ![Laughing Laughing](images/smiles/icon_lol.gif) |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
|