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 > [Stampa]
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Dio
.novellino.

User info:
Registered: Feb 2006
Posts: 9 (0.00 al dì)
Location: Villa di Tirano
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 2:09:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
stampa

DECLARE s;
DECLARE arg1;
arg1 = 10;
IF(arg1<=0)
PRINT 'Primo argomento invalido';

ELSE
DECLARE arg2;
arg2 = 5;
IF(arg2<=0)
PRINT 'Secondo argomento invalido';

ELSE
WHILE(arg1!=0)
searg2-=1;
s += 1;
WHILE(arg2!=0)
arg2 -= 1;
s += 1;
PRINT s;

e poi entra in un ciclo infinito, ma mi sembra strano dato ke dopo numerose prove abbiamo dedotto ke c andava tutto.
se notate l'istruzione in grassetto io ho notato ke prende "arg2" quando invece dovrebbe prendere "arg1" essendo il ciclo di arg1 appunto.
Voi sapete magari come mai succede cosi? perkè a sto punto penso sia un errore di mai...

08-02-2006 13:44
Click Here to See the Profile for Dio Click here to Send Dio a Private Message Find more posts by Dio Add Dio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dio
.novellino.

User info:
Registered: Feb 2006
Posts: 9 (0.00 al dì)
Location: Villa di Tirano
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 2:09:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Inoltre volevo sapere dve poter prendere il main aggiornato del progetto

08-02-2006 13:46
Click Here to See the Profile for Dio Click here to Send Dio a Private Message Find more posts by Dio Add Dio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A me entrava in loop a causa di un errore nella classe iterazione (precisamente nel metodo esegui()), visto il tuo problema potrebbe anche essere un errore nella classe iterazione...Controlla bene

08-02-2006 15:02
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per l'indentazione nessuno ha capito bene com'è la storia?

08-02-2006 18:23
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drowne
Java Tentonaro

User info:
Registered: Jan 2005
Posts: 230 (0.03 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: primo
Time Online: 2 Days, 0:03:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ti esce una roba cosi? ( senza il null ovviamente )

08-02-2006 19:11
Click Here to See the Profile for Drowne Click here to Send Drowne a Private Message Visit Drowne's homepage! Find more posts by Drowne Add Drowne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si stesso output (null a parte)

08-02-2006 19:27
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
A. Wesker 86
.novellino.

User info:
Registered: Feb 2006
Posts: 6 (0.00 al dì)
Location: Salsomaggiore T. (PARMA)
Corso: Comunicazione Digitale
Anno: primo anno
Time Online: 3:02:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Idem (null a parte) !!
Ma come si fa a indentare perfettamente?
Cmq dipenderà dal toString() di Sequenza o mi sbaglio?

__________________
The Americans are too in love with the sound of their own voice to speak the truth (MGS 2 Sons Of Liberty)

08-02-2006 19:36
Click Here to See the Profile for A. Wesker 86 Click here to Send A. Wesker 86 a Private Message Find more posts by A. Wesker 86 Add A. Wesker 86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drowne
Java Tentonaro

User info:
Registered: Jan 2005
Posts: 230 (0.03 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: primo
Time Online: 2 Days, 0:03:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

secondo me non becca l'eccezione del prog di malchiodi... Sto guardando cmq... Ora scarico Eclipse e faccio lo stepbystep

08-02-2006 19:42
Click Here to See the Profile for Drowne Click here to Send Drowne a Private Message Visit Drowne's homepage! Find more posts by Drowne Add Drowne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Credo anche io che la chiave di tutto stia nel metodo toString() di Sequenza..
Per l'eccezione del prog di Malchiodi non ho capito che intendi(non credo che il prog debba beccare nessuna eccezione)..

08-02-2006 19:46
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drowne
Java Tentonaro

User info:
Registered: Jan 2005
Posts: 230 (0.03 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: primo
Time Online: 2 Days, 0:03:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non si termina finche non fa il catch di ExecutionException, no?

se metto come valori 0 100 o 100 0 il programma va bene ( termina e scrive gli errori giusti ) ( sempre col null, che mi perseguita, LOL ). altrimenti va in loop.

08-02-2006 20:01
Click Here to See the Profile for Drowne Click here to Send Drowne a Private Message Visit Drowne's homepage! Find more posts by Drowne Add Drowne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se inserisci dei valori validi il programma stampa le istruzioni e stampa la somma finale e basta.
Se fai passare 0 e 100 oltre alle istruzioni stampa la stringa "Primo argomento invalido" e basta.

08-02-2006 20:07
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
m410
.simpatizzante.

User info:
Registered: Jan 2005
Posts: 14 (0.00 al dì)
Location: Como
Corso: Comunicazione Digitale
Anno: 2
Time Online: 10:25:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho bisogno di parlare con il ragazzo che ha aperto questo thread...

09-02-2006 18:22
Click Here to See the Profile for m410 Click here to Send m410 a Private Message Find more posts by m410 Add m410 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drowne
Java Tentonaro

User info:
Registered: Jan 2005
Posts: 230 (0.03 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: primo
Time Online: 2 Days, 0:03:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Anche io vorrei parlare con Dio ogni tanto...

09-02-2006 18:49
Click Here to See the Profile for Drowne Click here to Send Drowne a Private Message Visit Drowne's homepage! Find more posts by Drowne Add Drowne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:48.    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.154 seconds (60.42% PHP - 39.58% MySQL) con 26 query.