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 A - F > Fondamenti di architettura e programmazione > [Progetto] 15/05/2006
Pages (25): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dai...su...RAGAZZI......

qualche anima pia che risponde a Manuel86??!!!?!!?!!



Aiutiamo quelli più bisognosi di noi.....Facilitiamo l'open source....Aiutiamoci a vicenda.....(Questo nn significa passarsi i progetti CHE SIA CHIARO!!!!) ....Ma una dritta potrebbe far uscire il SuperProgrammerSajian che c'è in lui.....

Quindi Post amici miei.....:D

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-05-2006 16:13
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:(:( :help: Lancio SOS...
continuo ad avere un errore nella classe ReadVariable nel metodo eval, infatti

if (state.get(name) == null) throw new NotDeclaredVariableException();
Object o = state.get(name);
Integer i = (Integer)o;
int v = i.intValue();
return v;

e mi ripete che il cast è eseguito su classi incompatibili...
Se qualcuno sa farmi sapere dove o come si può risolvere il problema ne sarei felice.

Fatemi sapere!!

31-05-2006 16:29
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
soak
.precettore.

User info:
Registered: Nov 2005
Posts: 85 (0.01 al dì)
Location: Mantova
Corso: Comunicazione Digitale
Anno: 1 Bis
Time Online: 14:24:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

manuel nel testo del progetto c'è scritto che ogni istruzione tradotta in assembler deve essere stampata su una riga propria..perciò io ho pensato che il comando "\n" next-line vada messo nel metodo toString() delle classi che traducono effettivamente il codice assembler..tipo ADD AND
..perciò mi fa strano vedere che ne hai messo uno ("\n") nel toString() della classe Sequence.. in fondo quel toString() non fa altro che concatenare i vari toString() delle Istruzioni..
:pensa:mi fa un po' strano..

31-05-2006 16:38
Click Here to See the Profile for soak Click here to Send soak a Private Message Find more posts by soak Add soak to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Purtroppo insieme al cast nella condizione si è spostata anche la riga di comando che mi dà errore.
Mi scrive esattamente:

Exception in thread "main" java.lang.ClassCastException : Constant
at ReadVariable.eval(ReadVariable.java:25)
at Equal.eval(Equal.java:24)
at GreaterThan.eval(GreaterThan.java:23)
at Selection.run(Selection.java:30)
at Program.main(program.java:28)

dove la riga di ReadVariable corrisponde al casting e quelle successive si richiamano a scala in un effetto domino.

HELP!! :help: :help: HELP!!

31-05-2006 16:43
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Purtroppo insieme al cast nella condizione si è spostata anche la riga di comando che mi dà errore.
Mi scrive esattamente:

Exception in thread "main" java.lang.ClassCastException : Constant
at ReadVariable.eval(ReadVariable.java:25)
at Equal.eval(Equal.java:24)
at GreaterThan.eval(GreaterThan.java:23)
at Selection.run(Selection.java:30)
at Program.main(program.java:28)

dove la riga di ReadVariable corrisponde al casting e quelle successive si richiamano a scala in un effetto domino.


Tipo????
Posta posta.....la riga in cui da l'errore....!

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-05-2006 16:45
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
manuel86
.novellino.

User info:
Registered: Apr 2006
Posts: 7 (0.00 al dì)
Location: Ossimo (BS)
Corso: Comunicazione digitale
Anno: Primo
Time Online: 3:48:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

soak
manuel nel testo del progetto c'è scritto che ogni istruzione tradotta in assembler deve essere stampata su una riga propria..perciò io ho pensato che il comando "\n" next-line vada messo nel metodo toString() delle classi che traducono effettivamente il codice assembler..tipo ADD AND
..perciò mi fa strano vedere che ne hai messo uno ("\n") nel toString() della classe Sequence.. in fondo quel toString() non fa altro che concatenare i vari toString() delle Istruzioni..
mi fa un po' strano..

L'ho messo nel toString() del Sequence solo perchè così facendo non lo devo riscrivere in nessun'altra classe...in pratica va a capo da solo tutte le volte che gli serve...
Comunque, hai qualche idea sul motivo per cui mi stampa solo queste poche righe di codice???

DECLARE;
DECLARE;
ASSIGN;
SEQUENCE;

b must greater than zero

Last edited by manuel86 on 31-05-2006 at 16:49

31-05-2006 16:47
Click Here to See the Profile for manuel86 Click here to Send manuel86 a Private Message Find more posts by manuel86 Add manuel86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per Skioda86

La riga 25 ReadVariable.java prima istruzione in seguito al commento del metodo eval, implementato dal metodo astratto della superclasse.

if ((Integer)state.get(name) == null)

:sad: non so proprio quale sia l'errore :alsono:

31-05-2006 16:56
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dopo di questo,e prima di qst cosa hai scritto???

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-05-2006 16:57
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Intendi all'interno del metodo della classe?

31-05-2006 16:59
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

all'interno del metodo...

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-05-2006 17:03
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

C'è sempre un errore e stavolta in compilazione.
Il metodo chiede di ritornare un int e non un Integer e adesso non mi compila la classe.

31-05-2006 17:24
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marcolino85
puntualmente in ritardo

User info:
Registered: Jan 2005
Posts: 603 (0.08 al dì)
Location: Carugate
Corso: Comunicazione Digitale
Anno: Out :)
Time Online: 11 Days, 16:05:47 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by marcuss884
Scusate ma nella documentazione cosa ci scrivo??
A me sembra una totale perdita di tempo, cioè scrivere quello che ho fatto nn m passa +, ke me lo cheda all'orale!!!
Ke faccio copia/incolla dei sorgenti + la sua spiegazione?????
uffi...:help:


con eclipse puoi generare una documentazione io provo così... sperem!!!

31-05-2006 17:26
Click Here to See the Profile for marcolino85 Click here to Send marcolino85 a Private Message Find more posts by marcolino85 Add marcolino85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:( :( :pc: :pccrash:

31-05-2006 17:26
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

marcolino85
con eclipse puoi generare una documentazione io provo così... sperem!!!


Il profe aveva detto ASSOLUTAMENTE di no nel primo progettino ad una cosa del genere!!!! Facile altrimenti....
Kmq penso valga anche per il secondo progettino!!!!! E per tutti i progettini futuri...!!! :D

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-05-2006 17:30
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sempre lo stesso errore,

found Integer
required int

:(

31-05-2006 17:30
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 14:35.    Post New Thread    Post A Reply
Pages (25): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... 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.636 seconds (80.27% PHP - 19.73% MySQL) con 23 query.