Jump to content
Sign in to follow this  
Prince of Andalus

C: Warning: No New Line At End Of The File

Recommended Posts

selalunya apanila keluar warning camni

warning: no new line at end of the file

masa compile dlm C, maknanya aper dia???

hampir kebanyakan program yg saya compile jd camni..........

sad.gif

prince of andalus...aku pon tak brape pande sgt ler...tp kalu setakat kluar warning tu rasenye program ko bleh run lg kut?

ANyway, berkenaan "warning: no new line at end of the file"..aku penah dgr ler...ada sesetengah compiler tu dia mmg suka sgt kalu kita letak new line satu kat akhir file tu. Sebabnya? Ntah ler..aku pon tatau.

Cuba ko letak new line kat akhir code ko tu..mesti tak kuar punye (rasenyer..hehe)..

Share this post


Link to post
Share on other sites

prince of andalus...aku pon tak brape pande sgt ler...tp kalu setakat kluar warning tu rasenye program ko bleh run lg kut?

mmg boleh run.. tp saje je nak bg hilg warning tu...

dlm buku saya ckp sebaik2nya kena hilang semua warning la..

Cuba ko letak new line kat akhir code ko tu..mesti tak kuar punye (rasenyer..hehe)..

kena ltk kat mana, lps } ke lps return 0;????

Share this post


Link to post
Share on other sites

mmg boleh run.. tp saje je nak bg hilg warning tu...

dlm buku saya ckp sebaik2nya kena hilang semua warning la..

kena ltk kat mana, lps } ke lps return 0;????

letak last skali...lepas }

Share this post


Link to post
Share on other sites

letak last skali...lepas }

dah jd dah... tq sbb saya rasa saya dah try ltk lps tu sblm ni tp mungkin tak ter'save' pastu terus compile fail yg dulu.... jd tercompile yg fail yg takde line lps }...

lps try balik, compiler tak bg warning dah

pakai compiler apa tu? pellesc?

saya compile dlm linux.... mmg dah ader compiler dlm tu..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...