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 3^ Progettino A.A.04/05 Thread Rating: 1 votes, 5.00 average.
Pages (39): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by linkjr
Se proprio si vuole avere il tipo dell'oggetto, invece che usare una serie di instanceof, si può usare questa espressione
this.getClass().toString()


Grande, non l'avevo mai notato il metodo!!

C'è da fare un substring, ma funziona!!

Grazie!!

18-01-2004 15:37
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Grande, non l'avevo mai notato il metodo!!

C'è da fare un substring, ma funziona!!

Grazie!!


A me funzica bene anche senza substring... :shock: :shock:

__________________
Andrea

18-01-2004 15:41
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa, ridà "class: Cilindro"...

18-01-2004 15:43
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Scusa, ridà "class: Cilindro"...


Funziona bene invece con:

this.getClass().getName()

18-01-2004 15:52
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Scusa, ridà "class: Cilindro"...


Hai ragione, allora conviene usare questo anzichè il substring :
this.getClass().getName()

__________________
Andrea

18-01-2004 15:52
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Talking

Originally posted by linkjr
Hai ragione, allora conviene usare questo anzichè il substring :
this.getClass().getName()


Cavolo!!! Abbiamo postato contemporaneamente... :P :P :P

__________________
Andrea

18-01-2004 15:53
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Appunto.. :)

18-01-2004 15:53
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Bene, direi che risolto questo non ho più problemi!

Grazie linkjr!

18-01-2004 15:55
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Bene, direi che risolto questo non ho più problemi!

Grazie linkjr!


Figurati... :cool:

__________________
Andrea

18-01-2004 16:00
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi ero dimenticato di questo...

Originally posted by T_M_P
Secondo me il costruttore di TroncoDiCono può accettare RaggioPiccolo uguale ma non minore di 0...

Costruirebbe un TroncoDiCono uguale a un cono...


Se TroncoDiCono non può accettare raggiopiccolo uguale a 0, come fai a chiamare il costruttore di TDC da Cono?

18-01-2004 16:15
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Mi ero dimenticato di questo...



Se TroncoDiCono non può accettare raggiopiccolo uguale a 0, come fai a chiamare il costruttore di TDC da Cono?


Bella domanda, è l'ultima cosa che sto cercando di risolvere...
:shock: :? :shock:

__________________
Andrea

18-01-2004 16:28
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Masca
.amico.

User info:
Registered: Oct 2003
Posts: 36 (0.00 al dì)
Location:
Corso: Info
Anno: boh 2 || 3
Time Online: 16:00:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Escluso l'utilizzo di un array per la lista di figure3D in quanto non si puiò prevedere la sua dimensione, meglio uno STACK UNA SEQUENZA O COS'ALTRO????
dubbioso Masca

__________________
ringrazio carl von linde inventore del frigorifero
la birra ha tutto un altro sapore, grazie

18-01-2004 22:47
Click Here to See the Profile for Masca Click here to Send Masca a Private Message Find more posts by Masca Add Masca to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho usato un Vector che è alla fine la stessa cosa di Sequenza

__________________
Andrea

18-01-2004 23:21
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Masca
Escluso l'utilizzo di un array per la lista di figure3D in quanto non si puiò prevedere la sua dimensione, meglio uno STACK UNA SEQUENZA O COS'ALTRO????
dubbioso Masca


Io ho usato la LinkedList..

19-01-2004 08:08
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P 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

Scusate ma la sequenza con i parametri si puo' creare nel costruttore?

19-01-2004 09:47
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
All times are GMT. The time now is 20:04.    Post New Thread    Post A Reply
Pages (39): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... 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.156 seconds (64.55% PHP - 35.45% MySQL) con 24 query.