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 N - Z > Programmazione > [PROGRAMMAZIONE] Help 2^ Progettino!!! A.A.04/05
Pages (38): « First ... « 8 9 10 11 [12] 13 14 15 16 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate qualcuno sa dirmi perche' mi viene compilato tutto correttamente ma in fase di esecuzione ci sono eccezioni? il problema riguarda il file

12-12-2003 08:07
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
Scusate qualcuno sa dirmi perche' mi viene compilato tutto correttamente ma in fase di esecuzione ci sono eccezioni? il problema riguarda il file






dipende da che tipo di eccezioni

12-12-2003 08:33
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ecco l'errore che vedo in fase di esecuzione:
Exception in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at prog.io.FileInputManager.<init>(FileInputManager.java:27)
at AnalizzatoreTesto.>init>(AnalizzatoreTesto.java:16)
at Test.>init>(test.java:23)
at Test.main(Test.java:99)

12-12-2003 08:34
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mattcobain
I am my own parasite

User info:
Registered: Oct 2003
Posts: 1033 (0.13 al dì)
Location: Periferia sud-ovest
Corso: Informatica Magistrale
Anno: Fuori corso
Time Online: 13 Days, 19:47:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: Re: Cosa c'è tra i marcatori?

Originally posted by LjL
Be', se tu assumi che ci possano essere segni di punteggiatura, e riesci a scrivere il programma, direi che va benissimo - meglio per te. Al massimo poi i segni di punteggiatura nei test dei prof. non ci sono, e amen, rimani con una "feature" inutilizzata, non fa niente.

E in ogni caso, ripeto, se leggi le specifiche *non* c'è scritto che tra i marcatori non ci possono essere segni di punteggiatura. Ergo, *ci possono* essere segni di punteggiatura (tranne nei due casi specifici che sappiamo).



il problema nn è se riesco a scrivere il programma ke considera la punteggiatura fra i marcatori, perché il programma l'ho gia fatto ed è funzionante....io avevo trattato questo caso perché nella prima versione del file di test ke ci aveva dato, nel file delle parole chiave compariva #se...allora# (nn so se c'hai fatto caso anke tu) ed io vedendolo ho agito di conseguenza facendo in modo ke quindi la punteggiatura venisse considerata (tranni i famosi casi specifici)....il 9.12 però il prof ha cambiato il file di prova eliminando il suddetto caso anomalo, e quindi ecco ke è comparso il mio dubbio: l'avra tolto solo perché non voleva complicare la vita a tutti quelli ke gia sono in difficoltà per fare qst progetto (infatti ha anke messo l'implementazione del metodo equals(object o), oppure l'avrà tolto perché non vuole ke si consideri la punteggiatura fra i marcatori?!?!?
so ke ora nel file di test non ci sono marcatori, quindi il mio programma funzionerebbe, ma se per caso a progetto consegnato il prof si mette a controllare con nuovi file di test me la prenderei nel di dietro se mi considera questo caso come errore, capisci!? anke perché nn ci metto niente a modificare il sorgente e fare in modo ke vengano considerati solo i caratteri alfabetici...
vorrei solo togliermi qst dubbio, solo ke il prof nn risponde alla mail ke gli o mandato e altri modi per contattarlo nn credo ce ne siano... ke organizzazione ragazzi questi progetti!!!

Originally posted by LjL
Se poi vuoi dire che i prof. "intendevano dire che...", fai pure, ma direi che è a tuo rischio: magari intendevano dire, però non l'hanno detto.


ma cosa vuol dire "i prof intendevano dire..." ?!?!? :?:

12-12-2003 08:38
Click Here to See the Profile for mattcobain Click Here to See the Blog of mattcobain Click here to Send mattcobain a Private Message Find more posts by mattcobain Add mattcobain to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

come lo apri il file col FileInputManager ?

12-12-2003 08:39
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
leon
.amico.

User info:
Registered: Oct 2003
Posts: 28 (0.00 al dì)
Location: Milano prov.
Corso: Informatica
Anno: I
Time Online: 2:59:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Funzione di getIndentaziome

Ragazzuoli miei avrei bosigno di sapere che cosa fa esattamente getIndentazione della VoceIndice.
Leggendo mi sembra quasi che restituisca anche lei il livello.
E così?
se no cosa fa esattamente?
:cry:

12-12-2003 08:40
Click Here to See the Profile for leon Click here to Send leon a Private Message Find more posts by leon Add leon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sì con FileInputManager

12-12-2003 08:42
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a me non apre un bel corno....mi esce la stringa specificata nel file di test all'interno del metodo main, e oltre quello non fa niente, anche se io scrivo il nome del file...:(

__________________
Il Pega
www.pegasus83.com

12-12-2003 08:45
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
leon
.amico.

User info:
Registered: Oct 2003
Posts: 28 (0.00 al dì)
Location: Milano prov.
Corso: Informatica
Anno: I
Time Online: 2:59:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
aiuto

Pegasus................
hai letto il mio post poche righe più su???
Vi prego ragazzi

12-12-2003 08:51
Click Here to See the Profile for leon Click here to Send leon a Private Message Find more posts by leon Add leon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mattcobain
I am my own parasite

User info:
Registered: Oct 2003
Posts: 1033 (0.13 al dì)
Location: Periferia sud-ovest
Corso: Informatica Magistrale
Anno: Fuori corso
Time Online: 13 Days, 19:47:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Funzione di getIndentaziome

Originally posted by leon
Ragazzuoli miei avrei bosigno di sapere che cosa fa esattamente getIndentazione della VoceIndice.
Leggendo mi sembra quasi che restituisca anche lei il livello.
E così?
se no cosa fa esattamente?
:cry:


allora
public static int getIndentazione()
non fa altro ke restituire un int ke rappresenta il numero di spazi utilizzati per l'indentazione del testo (ke di default a valore 2)...solo questo, non deve restituire altro.....è solo una semplice istruzione, ok!?

12-12-2003 08:51
Click Here to See the Profile for mattcobain Click Here to See the Blog of mattcobain Click here to Send mattcobain a Private Message Find more posts by mattcobain Add mattcobain to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
leon
.amico.

User info:
Registered: Oct 2003
Posts: 28 (0.00 al dì)
Location: Milano prov.
Corso: Informatica
Anno: I
Time Online: 2:59:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma il numero di spazi su cosa è calcolato?
sul livello?
a me non sembra che in esempio.txt ci siano degli sapzi per gli indici

12-12-2003 08:53
Click Here to See the Profile for leon Click here to Send leon a Private Message Find more posts by leon Add leon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non voglio essere insistente ma se qualcuno sa qualcosa sul seguente errore riesco a salvare 'sto progettino:
Exception in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at prog.io.FileInputManager.<init>(FileInputManager.java:27)
at AnalizzatoreTesto.<init>(AnalizzatoreTesto.java:16)
at Test.<init>(test.java:23)
at Test.main(Test.java:99)

12-12-2003 08:54
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mattcobain
I am my own parasite

User info:
Registered: Oct 2003
Posts: 1033 (0.13 al dì)
Location: Periferia sud-ovest
Corso: Informatica Magistrale
Anno: Fuori corso
Time Online: 13 Days, 19:47:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by leon
ma il numero di spazi su cosa è calcolato?
sul livello?
a me non sembra che in esempio.txt ci siano degli sapzi per gli indici


il numero di spazi è un valore di default ke tu devi assegnare ad una variabile statica della classe VoceIndice....il valore standard (come scritto anke sul testo del progettino) è 2.
il tuo metodo getIndentazione deve solo restituire il contenuto di questa variabile statica, capito!?....è tutto qui!
il calcolo ke tiene conto del livello devi farlo in un'altro metodo, in getStringaIndentazione(), ke fa una cosa diversa, non restituisce il valore int di indentazione default, ma restituisce una stringa di indentazione composta da un numero di spazi pari a (valore indentazione)*(livello)....ti è piu kiaro ora!?

12-12-2003 08:57
Click Here to See the Profile for mattcobain Click Here to See the Blog of mattcobain Click here to Send mattcobain a Private Message Find more posts by mattcobain Add mattcobain to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
leon
.amico.

User info:
Registered: Oct 2003
Posts: 28 (0.00 al dì)
Location: Milano prov.
Corso: Informatica
Anno: I
Time Online: 2:59:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Hai considerato il fatto che delle righe sono vuote?forse può dipendere da questo fatto.

12-12-2003 08:57
Click Here to See the Profile for leon Click here to Send leon a Private Message Find more posts by leon Add leon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.29 al dì)
Location: Altrove
Corso: 404 error
Anno: 404 error
Time Online: 123 Days, 2:50:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
Non voglio essere insistente ma se qualcuno sa qualcosa sul seguente errore riesco a salvare 'sto progettino:
Exception in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at prog.io.FileInputManager.<init>(FileInputManager.java:27)
at AnalizzatoreTesto.<init>(AnalizzatoreTesto.java:16)
at Test.<init>(test.java:23)
at Test.main(Test.java:99)


Ecco... Se prima pensavo fosse un problema di netbeans adesso penso che c'è qualcosa che non va... ho anche io gli stessi errori, ma le mie classi vengono compilate...

in particolare:
code:
Exception in thread "main" java.lang.NullPointerException at prog.io.FileInputManager.<init>(FileInputManager.java:27) at Test.<init>(test.java:23) at Test.main(Test.java:99)

Uguali...

__________________
"Voi che tingete i mari del colore dello zinco, che tramutate i boschi in gialli deserti, i venti in fumi di polveri da sparo e che bruciate i cieli. Voi che volete ripetere i malvagi atti della sconsiderata Lilith, che fu la prima moglie di Adamo e poi la sposa del Diavolo. Voi che volete ripetere la ribellione scatenata da Lucifero, del mondo celeste il più splendente. Voi! Ascoltate l'afflizione della sottospecie alata che vola alta nel cielo." [Angel Sanctuary]
::: mail: yoruno@dsy.it ::: ::: My Site ::: ::: Dsy Photo Gallery ::: ::: DeviantART Gallery :::

12-12-2003 08:59
Click Here to See the Profile for yoruno Click Here to See the Blog of yoruno Click here to Send yoruno a Private Message Visit yoruno's homepage! Find more posts by yoruno Add yoruno to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 18:42.    Post New Thread    Post A Reply
Pages (38): « First ... « 8 9 10 11 [12] 13 14 15 16 » ... Last »   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.170 seconds (54.80% PHP - 45.20% MySQL) con 24 query.