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 > [LAB.PROGRAMMAZIONE]Esercizio di ieri sera
Pages (5): « 1 [2] 3 4 5 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ROYV
.primate.

User info:
Registered: Sep 2003
Posts: 74 (0.01 al dì)
Location: limbiate
Corso: Informatica
Anno: 1
Time Online: 1 Day, 19:36:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la forma :
(x minore di y e y maggiore di z non sono contemporaneamente vere o contemporaneamente false)

si esprime
(x < y ) && (y > z )
si dovrebbe usare XOR per rispettare le condizioni (V F o F V)

In forma completa [a && b ---> (a && !b) || (!a && b)
quindi : (x < y) && (y <= z) || (x >= y) && (y > z)

29-10-2003 07:47
Click Here to See the Profile for ROYV Click here to Send ROYV a Private Message Find more posts by ROYV Add ROYV to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
de_luna
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 441 (0.05 al dì)
Location: Prov. Milano
Corso: informatica
Anno: 3 (più o meno)
Time Online: 4 Days, 16:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per me ha ragione Yoruno, Grossi aveva messo un && tra le 2 condizioni ((x<y)&&(y<=z))&&((x<=y)&& (y>z))
ma non può essere così!
Per me ci ha confuso le idee

29-10-2003 08:56
Click Here to See the Profile for de_luna Click here to Send de_luna a Private Message Find more posts by de_luna Add de_luna 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

per l'esercizio son d'accordo con yoruno...se non devono essere cont. vere o cont false, una deve essere falsa e l'altra vera, e viceversa...

__________________
Il Pega
www.pegasus83.com

29-10-2003 08:59
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
de_luna
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 441 (0.05 al dì)
Location: Prov. Milano
Corso: informatica
Anno: 3 (più o meno)
Time Online: 4 Days, 16:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non riesco più a trovare gli appunti di Grossi, sul pc del lavoro non ho la pagina qualcuno ce l'ha sotto mano please? per le cose di lunedì

Grazie DeLuna

29-10-2003 09:19
Click Here to See the Profile for de_luna Click here to Send de_luna a Private Message Find more posts by de_luna Add de_luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.09 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://homes.dico.unimi.it/prog//tu...lez03/lez03.pdf

29-10-2003 09:22
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid 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

wow grazie ne avevo bisogno anch'io.... oggi a lavoro sono pieno...

__________________
Il Pega
www.pegasus83.com

29-10-2003 09:24
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
ROYV
.primate.

User info:
Registered: Sep 2003
Posts: 74 (0.01 al dì)
Location: limbiate
Corso: Informatica
Anno: 1
Time Online: 1 Day, 19:36:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non mi sembra cosi' contorto !!!
provate con condizioni più semplici allora

29-10-2003 09:30
Click Here to See the Profile for ROYV Click here to Send ROYV a Private Message Find more posts by ROYV Add ROYV to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
aladingenius
.primate.

User info:
Registered: Oct 2003
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Informatica serale
Anno: 1 [chissà per quanto!]
Time Online: 20:54:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yoruno
Magari dico una ca**ata, ma non potrebbe essere:

((x<y)&&(y<=z)) || ((x>=y)&&(y>x)) :?


non è una cazzata ;)

corrisponde a quella che grossi ha mostrato durante la lezione...

Dato che non vengono apprezzate le parentesi aggiuntive, però, si puo' scrivere così:

(x<y) && (y<=z) || (x>=y) && (y>x)

poichè l'operatoe && ha priorità rispetto all'operatore ||


Saluti,
Amir

__________________
Life is Too Short To Cry,
Long Enough To Try.
"March Of Time" - Helloween

29-10-2003 09:31
Click Here to See the Profile for aladingenius Click here to Send aladingenius a Private Message Visit aladingenius's homepage! Find more posts by aladingenius Add aladingenius 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 aladingenius
corrisponde a quella che grossi ha mostrato durante la lezione...


Ah, dai ? :? Io Grossi ormai lo ignoro completamente....

Dato che non vengono apprezzate le parentesi aggiuntive, però, si puo' scrivere così:

(x<y) && (y<=z) || (x>=y) && (y>x)

poichè l'operatoe && ha priorità rispetto all'operatore ||


E' vero, ottima idea!

__________________
"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 :::

29-10-2003 09:49
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
Collapse
de_luna
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 441 (0.05 al dì)
Location: Prov. Milano
Corso: informatica
Anno: 3 (più o meno)
Time Online: 4 Days, 16:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by saradid
http://homes.dico.unimi.it/prog//tu...lez03/lez03.pdf


grazie milleeee

29-10-2003 09:50
Click Here to See the Profile for de_luna Click here to Send de_luna a Private Message Find more posts by de_luna Add de_luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
aladingenius
.primate.

User info:
Registered: Oct 2003
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Informatica serale
Anno: 1 [chissà per quanto!]
Time Online: 20:54:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yoruno
Ah, dai ? :? Io Grossi ormai lo ignoro completamente....


Non so se fai bene o male... ero della tua stessa idea, poi ho cambiato opinione quando mi sono reso conto che mi facevo fregare dalla cazzatine... io sono abituato a farmi correggere dal compilatore o a strabuzzare gli occhi di fronte ad un comportamento sbagliato... :)

Sulla carta, all'esame, mica me lo posso permettere :evil:

ti dirò... un po' d'esercizio amanuense non mi ha fatto male :P

__________________
Life is Too Short To Cry,
Long Enough To Try.
"March Of Time" - Helloween

29-10-2003 09:59
Click Here to See the Profile for aladingenius Click here to Send aladingenius a Private Message Visit aladingenius's homepage! Find more posts by aladingenius Add aladingenius 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 aladingenius
ti dirò... un po' d'esercizio amanuense non mi ha fatto male :P


Proverò, allora, perlomeno imparerò ad essere più ordinato!

__________________
"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 :::

29-10-2003 10:16
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
Collapse
aladingenius
.primate.

User info:
Registered: Oct 2003
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Informatica serale
Anno: 1 [chissà per quanto!]
Time Online: 20:54:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yoruno
Proverò, allora, perlomeno imparerò ad essere più ordinato!


ad essere sincero pensavo che non mi sarei mai abituato a elimnare parentesi come fanno Pighizzini e Grossi.. soprattutto per gli "if (){..."

e invece... è anche più pulito ;-)

happy coding!

__________________
Life is Too Short To Cry,
Long Enough To Try.
"March Of Time" - Helloween

29-10-2003 10:22
Click Here to See the Profile for aladingenius Click here to Send aladingenius a Private Message Visit aladingenius's homepage! Find more posts by aladingenius Add aladingenius 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

ma i lucidi della lezione 4 di Grossi targata:

Lezione 4: 03 Novembre 2003 ?





http://homes.dico.unimi.it/prog/tur...ab/labprog.html

06-11-2003 14:07
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
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

fine dei lucidi ? :?

10-11-2003 13:47
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
All times are GMT. The time now is 20:17.    Post New Thread    Post A Reply
Pages (5): « 1 [2] 3 4 5 »   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.155 seconds (72.00% PHP - 28.00% MySQL) con 24 query.