Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 cannot execute
Index -> Programming, C -> C Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lindsay




PostPosted: 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
Sponsor
sponsor
Mazer




PostPosted: 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




PostPosted: Tue Oct 09, 2007 11:32 am   Post subject: Re: cannot execute

Thanks a lot Very Happy I've try Laughing
wtd




PostPosted: Tue Oct 09, 2007 2:15 pm   Post subject: RE:cannot execute

Also, you may wish to use code tags in your posts.
OneOffDriveByPoster




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: