Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Informatica applicata alla musica > esercizio programmazione
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
raffadrummer
.novellino.

User info:
Registered: Oct 2011
Posts: 4 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 0:48:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy esercizio programmazione

ciao premetto che sono nuovissima in questo campo ma quando eseguo il
programma mi da il warning: no new line at the end of file

il prog è questo:



//Converts a Farhenheit temperature to Celsius

#include <stdio.h>

#define FREEZING_PT 32.0f
#define SCALE_FACTOR (5.0f / 9.0f)

int main(void)
{
float farhenheit, celsius;

printf("Enter Farhenheit temperature: ");

scanf("%f", &farhenheit);

celsius = (farhenheit - FREEZING_PT) * SCALE_FACTOR;

printf("Celsius equivalent: %.1f\n", celsius);

return 0;
}


QUALCUNO MI PUO' DIRE DOVE SBAGLIOOOO

20-10-2011 21:07
Click Here to See the Profile for raffadrummer Click here to Send raffadrummer a Private Message Find more posts by raffadrummer Add raffadrummer to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CowBoy
.arcimaestro.

User info:
Registered: May 2006
Posts: 294 (0.04 al dì)
Location: Milano
Corso: F49 - Informatica
Anno: Laureato F49
Time Online: 3 Days, 13:40:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

"NO NEW LINE AT END OF FILE", pensavo che si spiegasse da sola questa frase... posiziona il cursore dopo la '}', batti Invio sulla tastiera, salva e ricompila.

Questo warning significa che l'EOF(end of file) del file sorgente non viene preceduto dal NEW LINE('\n'), bensì - nel tuo caso - dalla graffa chiusa.

__________________
.. ±·ø·±-`` MuSiC iS My LanGuAGe ´´-±·ø·± ..

Last edited by CowBoy on 20-10-2011 at 21:26

20-10-2011 21:22
Click Here to See the Profile for CowBoy Click here to Send CowBoy a Private Message Find more posts by CowBoy Add CowBoy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:16.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.030 seconds (77.05% PHP - 22.95% MySQL) con 28 query.