Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
pub:labprog:gennaio_2018 [2018/01/23 22:49]
atrent
pub:labprog:gennaio_2018 [2018/02/01 12:50] (current)
atrent
Line 1: Line 1:
 ====== Note esame Gennaio 2018 ====== ====== Note esame Gennaio 2018 ======
  
-===== Filtro ​=====+{{:​pub:​labprog:​filtroa_2018.01.22.pdf|tema "Filtro ​A"}}
  
-==== Temi ====+{{:​pub:​labprog:​filtrob_2018.01.22.pdf|tema "​Filtro B"}}
  
-{{:​pub:​labprog:​filtroa_2018.01.22.pdf|Filtro A}}+{{:​pub:​labprog:​tema_2018.01.22_v2.pdf|Tema esame}}
  
-{{:​pub:​labprog:​filtrob_2018.01.22.pdf|Filtro B}} +{{:​pub:​labprog:​gennaio2018.zip|Soluzioni}}
- +
-=== Test script === +
- +
-<​code>​ +
-#​!/​bin/​bash +
- +
-if +
- ! javac Filtro*java +
-then +
- echo "​ATTENZIONE! il sorgente non compila"​ +
- exit 1 +
-fi +
- +
-FILTRO=$(basename Filtro*java .java) # fallisce se ci sono due file Filtro*.java +
- +
-TMP=$(mktemp) +
- +
-cat > $TMP <<​HERE +
-TutteLettere +
-12345 +
-LettereCon1Numero  +
- +
-12.50 2*5 ​ (27+52) +
- +
-3+5=8 +
-LettereCon1Numero  +
- +
-File test per i programmi filtro +
- +
-tutteminuscole +
- +
-TUTTEMAIUSCOLE +
- +
-minuscolecon1numero qpweioqwUUUUU!999 +
- +
-12345  pippo=pluto +
- +
-djalkdjasl>​oipieqw +
- +
-alkjd l aslkdj aslkjd asl eqw(iuwei +
- +
-/​alskdjaslk ​  ​2387()uyweuy +
- +
-MMMMMMM(UUU +
-HERE +
- +
-java $FILTRO $TMP +
-</​code>​ +
- +
- +
-Output dello script (FiltroA):​ +
- +
-<​code>​ +
-TutteLettere:​1259,​O +
-12345:​-1004,​O +
-LettereCon1Numero:​1437,​O +
-12.50:​-1446,​O +
-2*5:​-101,​O +
-(27+52):​187,​O +
-3+5=8:​-68,​S +
-LettereCon1Numero:​1428,​O +
-File:​-1308,​O +
-test:64,L +
-per:​-121,​L +
-i:-222,L +
-programmi:​869,​L +
-filtro:​-318,​L +
-tutteminuscole:​885,​L +
-TUTTEMAIUSCOLE:​-461,​U +
-minuscolecon1numero:​926,​O +
-qpweioqwUUUUU!999:​-484,​S +
-12345:​-1267,​O +
-pippo=pluto:​922,​S +
-djalkdjasl>​oipieqw:​695,​S +
-alkjd:​-1354,​L +
-l:-410,L +
-aslkdj:​525,​L +
-aslkjd:​0,​L +
-asl:​-313,​L +
-eqw(iuwei:​600,​O +
-/​alskdjaslk:​187,​O +
-2387()uyweuy:​-118,​O +
-MMMMMMM(UUU:​-155,​O +
-</​code>​ +
- +
- +
-Output dello script (FiltroB):​ +
- +
-<​code>​ +
-TutteLettere:​104,​L +
-12345:​-53,​D +
-LettereCon1Numero:​48,​O +
-12.50:​-50,​O +
-2*5:-1,S +
-(27+52):​-1,​S +
-3+5=8:5,O +
-LettereCon1Numero:​47,​O +
-File:-3,L +
-test:16,L +
-per:-3,L +
-i:-4,L +
-programmi:​3,​L +
-filtro:​1,​L +
-tutteminuscole:​1,​L +
-TUTTEMAIUSCOLE:​-33,​L +
-minuscolecon1numero:​28,​O +
-qpweioqwUUUUU!999:​-16,​O +
-12345:​-38,​D +
-pippo=pluto:​56,​O +
-djalkdjasl>​oipieqw:​-3,​O +
-alkjd:​-1,​L +
-l:5,L +
-aslkdj:​-3,​L +
-aslkjd:​0,​L +
-asl:1,L +
-eqw(iuwei:​-4,​S +
-/​alskdjaslk:​-2,​S +
-2387()uyweuy:​-18,​S +
-MMMMMMM(UUU:​-7,​S +
-</​code>​+
pub/labprog/gennaio_2018.txt · Last modified: 2018/02/01 12:50 by atrent
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0