<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2952833082760444991</id><updated>2024-09-13T05:41:01.752+02:00</updated><category term="Algoritmo"/><category term="Approfondimenti"/><category term="Codici"/><category term="Corso C"/><category term="Dev C++"/><category term="Esercitazioni"/><category term="Linguaggio di programmazione C"/><category term="Programmi"/><category term="Sintassi C"/><category term="compilatore"/><category term="linker"/><category term="Architettura di un calcolatore"/><category term="Ciclo post-condizionato"/><category term="Ciclo pre-condizionato"/><category term="Dichiarazione di una variabile"/><category term="Direttive di conversione"/><category term="Gioco-dadi"/><category term="IDE"/><category term="Integrated Development Envirolment"/><category term="Rand"/><category term="Selezione-if"/><category term="Srand"/><category term="Stringhe"/><category term="Strumenti di lavoro"/><category term="Tipi di variabile C"/><category term="Traduttore"/><category term="Variabili C"/><category term="Von Neuman"/><category term="Wihile"/><category term="assemblatore"/><category term="debugger"/><category term="editor"/><category term="interprete"/><category term="linguaggio alto livello"/><category term="linguaggio basso livello"/><category term="linguaggio di programmazione"/><category term="linguaggio macchina"/><category term="loader"/><title type='text'>Appunti informatica</title><subtitle type='html'>Corso C, Strumenti informatici, Strumenti programmazione, Corsi di programmazione, Corsi di informatica, Appunti informatica</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-6014315863112725029</id><published>2014-11-19T11:41:00.000+01:00</published><updated>2014-11-22T09:37:39.087+01:00</updated><title type='text'>Es. Calcola fattoriale</title><content type='html'>&lt;b&gt;Esercizio:&lt;/b&gt;&lt;br /&gt;
Calcolare fattoriale di un numero dato da tastiera&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
 
&lt;/ol&gt;
&lt;style&gt; #dado td{border:1px solid black;vertical-align:top;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td style=&quot;width: 100px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Variabili&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
 &lt;td&gt;&lt;b&gt;n =&amp;nbsp;Input - &lt;/b&gt;conterrà il numero inserito dall&#39;utente&lt;br /&gt;
&lt;b&gt;nc = Output - &lt;/b&gt;conterrà il fattoriale di n&lt;br /&gt;
&lt;b&gt;i =&amp;nbsp;Lavoro&lt;/b&gt;&amp;nbsp;- indice per ciclo for, e decremento per n in modo da ottenere:&lt;br /&gt;
&amp;nbsp;n * (n-1) * (n-2) * (...) * 1&lt;br /&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
 &lt;td&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;&lt;b&gt;Sequenza&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Iterazione&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Bozza&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;

 &lt;td&gt;&lt;br /&gt;
nc=1&lt;br /&gt;
&lt;b&gt;input&lt;/b&gt;(n) &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//supponiamo che inserisco 4&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;for&lt;/b&gt;(i=0;i&amp;lt;n;i++)&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;nc= nc*(n-i) &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//nc= 1*(4-0) =4 &amp;nbsp;*(4-1)=12 &amp;nbsp;*(4-2)=24 &amp;nbsp;*(4-3)=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;4&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;}&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;display: none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/ba9qs3&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt;&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;&lt;style&gt;.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/6014315863112725029/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-calcola-fattoriale.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6014315863112725029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6014315863112725029'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-calcola-fattoriale.html' title='Es. Calcola fattoriale'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-778047968008942949</id><published>2014-11-12T14:18:00.000+01:00</published><updated>2014-11-12T16:15:31.913+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Esercitazioni"/><category scheme="http://www.blogger.com/atom/ns#" term="Stringhe"/><title type='text'>Esercitazione 2 - Le stringhe</title><content type='html'>&lt;script src=&quot;http://ideone.com/e.js/HurjRS&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Controlli stringhe utilizzati:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;strlen(&amp;nbsp;&lt;/b&gt;&lt;i&gt;stringa&lt;/i&gt;&amp;nbsp;&lt;b&gt;)&lt;/b&gt;&amp;nbsp;Restituisce valore int corrispondente al &lt;b&gt;numero di caratteri occupati della stringa&lt;/b&gt;,escluso carattere di fine stringa&lt;/li&gt;
&lt;li&gt;&lt;b&gt;strcpy(&amp;nbsp;&lt;/b&gt;&lt;i&gt;stringa1&lt;/i&gt;&amp;nbsp;,&amp;nbsp;&lt;i&gt;stringa2&lt;/i&gt;&amp;nbsp;&lt;b&gt;)&lt;/b&gt;:&lt;b&gt;Copia&lt;/b&gt; la stringa 2 nella stringa 1&lt;/li&gt;
&lt;li&gt;&lt;b&gt;strcmp(&amp;nbsp;&lt;/b&gt;&lt;i&gt;stringa1&lt;/i&gt; , &lt;i&gt;stringa2&lt;/i&gt;&amp;nbsp;&lt;b&gt;)&lt;/b&gt;:Comparare il codice ASCII corrispondente ai caratteri delle stringhe e &lt;b&gt;dice quale stringa viene prima in ordine alfabetico&lt;/b&gt;.&lt;br /&gt;Restituisce -1 se stringa 1 viene prima di stringa 2&lt;br /&gt;Restituisce 0 se le due stringhe sono uguali&lt;br /&gt;Restituisce 1 se la stringa 2 viene prima della stringa 1.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Per non confonderci&lt;/b&gt; possiamo leggere i controlli così:&lt;br /&gt;Stringa 1 &amp;lt; Stringa 2 : Stringa 1 precede Stringa 2&lt;br /&gt;Stringa 1 &amp;gt; Stringa 2 : Stringa 1 segue Stringa 2&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;display:none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/778047968008942949/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/esercitazione-2.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/778047968008942949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/778047968008942949'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/esercitazione-2.html' title='Esercitazione 2 - Le stringhe'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-6613583984089301157</id><published>2014-11-10T14:11:00.001+01:00</published><updated>2014-11-12T15:19:25.622+01:00</updated><title type='text'>Es 5.</title><content type='html'>&lt;b&gt;Esercizio 5&lt;/b&gt;&lt;br /&gt;
Si supponga che 3 dispositivi trasferiscano dati rispettivamente ad una velocità di &lt;br /&gt;
&amp;nbsp;6 Gbit/sec &amp;nbsp;, &amp;nbsp; 3 Gbit/sec &amp;nbsp;, &amp;nbsp; 1,5 Gbit/sec &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Calcolare per ciascun dispositivo il tempo necessario per eseguire &amp;nbsp;il BackUp di un HD da 500 GByte&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Calcolare per ciascun dispositivo il tempo necessario per eseguire &amp;nbsp;il BackUp di un HD da 1 TByte&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;ol&gt;
 
&lt;/ol&gt;
&lt;style&gt; #dado td{border:1px solid black;vertical-align:top;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td style=&quot;width: 100px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Variabili&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
 &lt;td&gt;&lt;b&gt;v1 =&lt;/b&gt;&amp;nbsp;Lavoro -&amp;nbsp;&lt;b&gt;float - &amp;nbsp;&lt;/b&gt;Velocità 1 6gbit/sec&lt;br /&gt;
&lt;b&gt;v2&lt;/b&gt;&amp;nbsp;= Output &amp;nbsp;- Lavoro - &amp;nbsp;&lt;b&gt;float - &lt;/b&gt;Velocità&amp;nbsp;2 &amp;nbsp;3gbit/sec 1.5gbit/sec&lt;br /&gt;
&lt;b&gt;i =&amp;nbsp;&lt;/b&gt;Lavoro - &lt;b&gt;int - &lt;/b&gt;indice per ciclo while relativo a dispositivi&lt;br /&gt;
&lt;b&gt;i2 &lt;/b&gt;= Lavoro - &lt;b&gt;int - &lt;/b&gt;indice per ciclo while relativo alle velocità&lt;br /&gt;
&lt;b&gt;hd1&lt;/b&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;= &amp;nbsp;Output - &lt;b&gt;float - &lt;/b&gt;indica la capacità del primo hd&lt;br /&gt;
&lt;b&gt;hd2 &lt;/b&gt;= Output - &lt;b&gt;float - &lt;/b&gt;Hd1*2 indice la capacità dell secondo hd&lt;br /&gt;
&lt;b&gt;resto = &lt;/b&gt;Lavoro - &lt;b&gt;int - &lt;/b&gt;per la trasformazione di sec in ore minuti e secondi&lt;br /&gt;
&lt;b&gt;sec =&amp;nbsp;&lt;/b&gt;Output - &lt;b&gt;int&lt;/b&gt; - indica i secondi&lt;br /&gt;
&lt;b&gt;min = &lt;/b&gt;Output&lt;b&gt; - int -&lt;/b&gt; indica i minuti&lt;br /&gt;
&lt;b&gt;ore =&amp;nbsp;&lt;/b&gt;Output - &lt;b&gt;int &lt;/b&gt;- indica le ore&lt;br /&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
 &lt;td&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;&lt;b&gt;Sequenza&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Iterazione&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Selezione&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Bozza&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;

 &lt;td&gt;&lt;br /&gt;
&lt;b&gt;mentre(&lt;/b&gt;i&amp;gt;=0 &amp;amp;&amp;amp; i&amp;lt;2&lt;b&gt;)ripeti&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//ciclo hd1 hd2 , &amp;nbsp;si ripete per 2 volte&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;se(&lt;/b&gt;i==0&lt;b&gt;)allora&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output&lt;/b&gt;(hard disk0 , capacità 0)&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; altrimenti&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output&lt;/b&gt;(hard disk1, capacità 1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;fine se&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;i2 = 0 //in modo da far ripetere il ciclo per ore min sec anche la seconda volta&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;mentre(&lt;/b&gt;i2&amp;gt;=0 &amp;amp;&amp;amp; i2&amp;lt;3&lt;b&gt;)ripeti&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//ciclo ore:min:sec , entra con 0 esce con i2=3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;v2=v1/(pow(2,i2))&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;6/1=6...6/2=3...6/4=1.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b&gt;&amp;nbsp;output&lt;/b&gt;(velocità di trasferimento v2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;se(&lt;/b&gt;i==0&lt;b&gt;)allora&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//quindi lavoriamo sull hd0&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&amp;nbsp; &amp;nbsp;sec = hd1/v2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp; altrimenti&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//quindi lavoriamo sull hd1&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp; &amp;nbsp;sec = hd2/v2&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fine se&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//algoritmo che trasforma sec tot in ore min sec&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;ore=sec/3600&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resto=sec%3600;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;min= resto/60 ; //minuti&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;sec=resto%60;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; &amp;nbsp;output&lt;/b&gt;(tempo trasferimento in h:m:s)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i2++&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;fine mentre&lt;span style=&quot;background-color: white; color: #6aa84f;&quot;&gt; //fine ciclo ore min sec&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;/b&gt;&amp;nbsp;i++&lt;br /&gt;
&lt;b&gt;fine mentre&amp;nbsp;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: #6aa84f;&quot;&gt;//fine ciclo hd0 hd1&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/KBbXF2&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Esercizio 5 con matrice&lt;/b&gt;
&lt;script src=&quot;http://ideone.com/e.js/1AFQSs&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;div class=&quot;separator&quot; style=&quot;display:none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;


&lt;div style=&quot;display: none;&quot;&gt;
Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand&lt;b&gt;Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand&lt;/b&gt;&lt;br /&gt;
&lt;h1&gt;
Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand,matrici,&lt;/h1&gt;
Gioco dadi v1
Extra:
corso c forumfree
corso c forumfree
linguaggio c
sdr corso c
medicina sapienza corso c
noi del corso c
quelli del corso c
corso di programmazione c
linguaggio c guida alla programmazione
programmi in c sulle matrici
gestione matrici c
matrici in c potreste aiutarmi
prodotto di due matrici in c
programma c
c variabili
uso di malloc c
c puntatori
&lt;/div&gt;
&lt;style&gt;.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/6613583984089301157/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-5_10.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6613583984089301157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6613583984089301157'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-5_10.html' title='Es 5.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-1060419259021666225</id><published>2014-11-09T16:44:00.000+01:00</published><updated>2014-11-19T11:40:50.531+01:00</updated><title type='text'>Es 4.</title><content type='html'>&lt;b&gt;Esercizio 4&lt;/b&gt;&lt;br /&gt;
Calcolare il tempo necessario per trasferire il contenuto di un: 
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;CD 700MB&lt;/li&gt;
&lt;li&gt;DVD 4.7 GB 8.5 (dual layer)&lt;/li&gt;
&lt;li&gt;Blue Ray 23.3; 25 ; 27 GB&lt;/li&gt;
&lt;/ol&gt;
supponendo che la velocità di trasferimento è di 10Mbit/sec.&lt;br /&gt;
&lt;ol&gt;
 
&lt;/ol&gt;
&lt;style&gt; #dado td{border:1px solid black;vertical-align:top;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td style=&quot;width: 100px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Variabili&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
 &lt;td&gt;&lt;b&gt;tmp =&lt;/b&gt;&amp;nbsp;Lavoro - Globale&lt;br /&gt;
&lt;b&gt;t[&lt;/b&gt;3&lt;b&gt;]&lt;/b&gt;&amp;nbsp;= Output :ore; min; sec - Globale&lt;br /&gt;
&lt;b&gt;i =&amp;nbsp;&lt;/b&gt;Lavoro - Globale&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;vt = Costante - globale&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;dvd[5] = Costante:capacità DVD; DVD-DL; Blue Ray(23.3;25;27 GB) - Globale&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;cd = Costante: capacità CD - Locale&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;resto = &lt;/b&gt;Lavoro - Locale&lt;br /&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
 &lt;td&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;&lt;b&gt;Sequenza&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Iterazione&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Selezione multipla&lt;/b&gt; (costrutto derivato)&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Altri strumenti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;

 &lt;td&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;&lt;b&gt;Procedure&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&amp;nbsp;Vettori&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Bozza&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;

 &lt;td&gt;&lt;br /&gt;
&lt;b&gt;main&lt;/b&gt;(){&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;//Inizializzazione variabili e array&lt;/span&gt;&lt;br /&gt;
cd=700 &lt;span style=&quot;color: #6aa84f;&quot;&gt;//MB&lt;/span&gt;&lt;br /&gt;
dvd[i]=capacità rispettive&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//GB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;//assegnazioni&lt;/span&gt;&lt;br /&gt;
vt = vt/8 &lt;span style=&quot;color: #6aa84f;&quot;&gt;//da Mbit/sec a MByte/sec&lt;/span&gt;&lt;br /&gt;
tmp=cd/vt; &lt;span style=&quot;color: #6aa84f;&quot;&gt;//tempo = capacità/velocità di trasferimento&lt;/span&gt;&lt;br /&gt;
calcolaore() &lt;span style=&quot;color: #6aa84f;&quot;&gt;//richiamo procedura calcolaore&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;(dettagli trasferimento cd)&lt;br /&gt;
&lt;b&gt;Mentre&lt;/b&gt;(i&amp;gt;=0 &amp;amp;&amp;amp; i&amp;lt;= 4) &lt;b&gt;Ripeti &lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//entra con i=4 esce con i=-1&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;dvd[i]= dvd[i] * 1024 &lt;span style=&quot;color: #6aa84f;&quot;&gt;//trasformo GB in MB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &lt;/span&gt;&amp;nbsp; &amp;nbsp; tmp = dvd[i] /vt &lt;span style=&quot;color: #6aa84f;&quot;&gt;//calcola tempo in secondi per il trasferimento&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; calcolaore() &lt;span style=&quot;color: #6aa84f;&quot;&gt;//richiamo procedura che trasforma tempo di trasf. in ore minuti e secondi.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;stampa() &lt;span style=&quot;color: #6aa84f;&quot;&gt;//richiamo proced. che stampa i dettagli di trasferimento dvd[i]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt; i--&lt;span style=&quot;color: #6aa84f;&quot;&gt; //decremento indice per ciclo while e vettore dvd[i]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Fine mentre&lt;/b&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//Procedure&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Stampa&lt;/b&gt;(){&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;switch&lt;/b&gt;(i) &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// indica che stiamo esaminado la variabile i&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;case&lt;/b&gt; 4:&lt;span style=&quot;color: #6aa84f;&quot;&gt; &amp;nbsp;// nel caso in cui il valore della variabile i è 4 allora&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; output&lt;/b&gt;(dettagli trasferimento dvd[4])&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;case&lt;/b&gt;&amp;nbsp;...: &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// 3 - 2 - 1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;output&lt;/b&gt;(dettagli trasferimento dvd[...])&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;case&lt;/b&gt;&amp;nbsp;0:&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;// nel caso in cui il valore della variabile i è 0 allora&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;output&lt;/b&gt;(dettagli trasferimento dvd[0])&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;Calcolaore&lt;/b&gt;(){&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&amp;nbsp;t[0] = tmp/3600 &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//calcolo le ore&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;resto = tmp%3600 &lt;span style=&quot;color: #6aa84f;&quot;&gt;//resto delle ore&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;t[1] = resto/60 &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//calcolo minuti&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&lt;/span&gt; &amp;nbsp;t[2] = resto %60 &lt;span style=&quot;color: #6aa84f;&quot;&gt;//calcolo secondi&lt;/span&gt;&lt;br /&gt;
}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;display: none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/GUvLEY&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;


&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;&lt;style&gt;.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/1060419259021666225/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-4.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/1060419259021666225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/1060419259021666225'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-4.html' title='Es 4.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-8918438767399800889</id><published>2014-11-06T12:42:00.001+01:00</published><updated>2014-11-12T15:17:06.821+01:00</updated><title type='text'>Es 3.</title><content type='html'>&lt;b&gt;Esercizio 3&lt;/b&gt;&lt;br /&gt;
Se la velocità di trasferimento di un dispositivo è di 1 Gbit/sec trasformarla in:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;KByete/min&lt;/li&gt;
&lt;li&gt;GByte/ora&lt;/li&gt;
&lt;li&gt;Gbit/ora&lt;/li&gt;
&lt;li&gt;GByte/min&lt;/li&gt;
&lt;li&gt;Gbit/min&lt;/li&gt;
&lt;/ol&gt;
&lt;style&gt; #dado td{border:1px solid black;vertical-align:top;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Variabili&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Bozza&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;background-color: white; color: #0b5394;&quot;&gt;Gbps = constante&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;Gbpm =&lt;/b&gt; output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;Gbph = &lt;/b&gt;output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;GBpm&lt;/b&gt; =&amp;nbsp;output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;GBph&amp;nbsp;&lt;/b&gt;=&amp;nbsp;output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;Kbpm&amp;nbsp;&lt;/b&gt;=&amp;nbsp;output&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;b&gt;- Sequenza&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 5px 5px 10px 5px;&quot;&gt;&amp;nbsp;Gbps = 1&lt;br /&gt;
&amp;nbsp;Gbpm=Gbps *60&lt;br /&gt;
&amp;nbsp;Gbph=Gbpm*60&lt;br /&gt;
&amp;nbsp;GBpm=Gbpm/8&lt;br /&gt;
&amp;nbsp;GBph=GBpm*60&lt;br /&gt;
&amp;nbsp;KBpm=GBpm*1024&lt;sup&gt;2&lt;/sup&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;output(&lt;/b&gt;Gbpm,Gbph,GBpm,GBph,Kbpm&lt;b&gt;)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: -10px; text-align: right;&quot;&gt;
&lt;b&gt;&lt;a align=&quot;right&quot; class=&quot;lezione&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgugaslbd3BZL4nrwfhxMdgfVdHfIOcnQp2qVIZjFJCD6SLF5CfOaJVbIA6lDbjygI66MruzC9SkevjmhA6-1lavA0pUL-1DXxsL1C_uzPd6TNvqiV-uo1TFptPoJ15RgvsWu4CmQRlP23v/s1600/Calcolo+GBps+Gbps+Gbmp+ecc...PNG&quot; margin=&quot;14px&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Flow chart&lt;/b&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;display:none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/6qpkcY&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt;&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/8918438767399800889/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-3.html#comment-form' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8918438767399800889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8918438767399800889'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-3.html' title='Es 3.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-8790872470772262629</id><published>2014-11-05T11:22:00.000+01:00</published><updated>2014-11-12T15:16:44.238+01:00</updated><title type='text'>Es 2.</title><content type='html'>&lt;b&gt;Esercizio 2&lt;/b&gt;&lt;br /&gt;
Assegnata la Velocità di una autovettura 180 Km/Ora trasformarla in:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;metri al secondo&lt;/li&gt;
&lt;li&gt;metri al minuto&lt;/li&gt;
&lt;li&gt;Kilometri al minuto&lt;/li&gt;
&lt;li&gt;Kilometri al secondo&lt;/li&gt;
&lt;/ol&gt;
&lt;style&gt; #dado td{border:1px solid black;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Variabili&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Bozza&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;vkmh = costante&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;vkms&lt;/b&gt;&amp;nbsp;= Output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;vkmm&amp;nbsp;&lt;/b&gt;= Output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;vms&amp;nbsp;&lt;/b&gt;= Output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;vmm&amp;nbsp;&lt;/b&gt;= Output&lt;br /&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;- Sequenza&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 5px 5px 10px 5px;&quot;&gt;&amp;nbsp;vkmh = 180 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// km/h&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;vkms = vkmh/3600 &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// km/s&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;vkmm = vkms *60 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// km/m&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;vms = vkms * 1000 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// m/s&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;vmm = vms * 60 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// m/m&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;output(&lt;/b&gt;vkms,vkmm,vms,vmm&lt;b&gt;)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: -10px; text-align: right;&quot;&gt;
&lt;b&gt;&lt;a align=&quot;right&quot; class=&quot;lezione&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ1A8Pi1PCd6s8tEXO61SX8gVdWpc49FLfd1sTKMD6o_gb-oOuNgyyNi6xVOaJ5X_5K0aqm_TbeJ9zYKa5ja_a5qeQRYwm2kNdCYsf-SL40B4aOiTp7Sifrg5gzQU_JMrJ4n_8Rx14IeDq/s1600/calcolo+kmh+kmm+kms+ms+mh.PNG&quot; margin=&quot;14px&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Flow chart&lt;/b&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/8QPaYN&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;


&lt;div class=&quot;separator&quot; style=&quot;display:none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;style&gt;
 .lezione {
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/8790872470772262629/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-2_6.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8790872470772262629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8790872470772262629'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-2_6.html' title='Es 2.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-122359622806810052</id><published>2014-11-04T10:31:00.000+01:00</published><updated>2014-11-12T15:16:12.508+01:00</updated><title type='text'>Es 1.</title><content type='html'>&lt;b&gt;Esercizio 1&lt;/b&gt;&lt;br /&gt;
Assegnato il seguente numero di secondi 15678. Calcolare&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;Il numero di ore&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Il numero di minuti&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Il numero di secondi residui&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;style&gt; #dado td{border:1px solid black;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Variabili&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Bozza&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&lt;b&gt;sec&lt;/b&gt; = &lt;b&gt;Costante&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;ore&lt;/b&gt;&amp;nbsp;= Output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;minuti &lt;/b&gt;= Output&lt;br /&gt;
&lt;b&gt;&amp;nbsp;resto = &lt;/b&gt;Lavoro/Output&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;- Sequenza&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 5px 5px 10px 5px;&quot;&gt;&amp;nbsp;sec=15678&lt;br /&gt;
&amp;nbsp;ore= sec / 3600&lt;br /&gt;
&amp;nbsp;resto= sec % 3600&lt;br /&gt;
&amp;nbsp;minuti= resto / 60&lt;br /&gt;
&amp;nbsp;resto= resto % 60&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//secondi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;output(&lt;/b&gt;ore,minuti,resto&lt;b&gt;)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: -10px; text-align: right;&quot;&gt;
&lt;b&gt;&lt;a align=&quot;right&quot; class=&quot;lezione&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwndR-1gw3xQbNCQm2GO0BDegfwxnBq5bvLXGn9aISUw9G569cvtLONnYFN4X77Dk9eanw7zFwKkewU0awCE_HCNQwtbFRcUuvcuhzYXa2Zg2cj3q9SklNAzLYrLwa9Nh4vtNpBoFrRnCt/s1600/Calcolo+ore+minuti+secondi+algobuild.PNG&quot; margin=&quot;14px&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Flow chart&lt;/b&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;



&lt;div class=&quot;separator&quot; style=&quot;display:none&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/ixbtQX&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}&lt;/style&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/122359622806810052/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-1.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/122359622806810052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/122359622806810052'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/11/es-1.html' title='Es 1.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-8530607478471014481</id><published>2014-10-28T09:50:00.000+01:00</published><updated>2014-11-12T15:18:38.357+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ciclo post-condizionato"/><category scheme="http://www.blogger.com/atom/ns#" term="Ciclo pre-condizionato"/><category scheme="http://www.blogger.com/atom/ns#" term="Esercitazioni"/><category scheme="http://www.blogger.com/atom/ns#" term="Gioco-dadi"/><category scheme="http://www.blogger.com/atom/ns#" term="Rand"/><category scheme="http://www.blogger.com/atom/ns#" term="Selezione-if"/><category scheme="http://www.blogger.com/atom/ns#" term="Srand"/><category scheme="http://www.blogger.com/atom/ns#" term="Wihile"/><title type='text'>Esercitazione 1...Crea un gioco che simula una partita ai dadi</title><content type='html'>&lt;style&gt;#post-body-8530607478471014481{line-height:20px;}&lt;/style&gt;

&lt;br /&gt;
&lt;h4&gt;
Gioco dado V1.0&lt;/h4&gt;
-1 giocatore.&lt;br /&gt;
-1 dado.&lt;br /&gt;
&lt;style&gt; #dado td{border:1px solid black;}&lt;/style&gt;

&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Variabili&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Bozza&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;d&lt;/b&gt; = Lavoro&lt;br /&gt;
&amp;nbsp;&lt;b&gt;n&lt;/b&gt; = Input&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;- Selezione&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;input&lt;/b&gt; n&lt;br /&gt;
&amp;nbsp;d = numero casuale tra 1 e 6&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Se&lt;/b&gt; (n==d) &lt;b&gt;Allora &lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;output( hai vinto!)&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Altrimenti &lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;output(hai perso!)&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Fine se&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/NFnDcz&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h4&gt;
Gioco dado V1.1&lt;/h4&gt;
-Aggiunta funzione nuova partita&lt;br /&gt;
-Aggiunta possibilità di giocare contro il computer&lt;br /&gt;
&lt;table id=&quot;dado&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ANALISI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Variabili&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Costrutti&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Bozza&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;d&lt;/b&gt; = Lavoro&lt;br /&gt;
&amp;nbsp;&lt;b&gt;n&lt;/b&gt; = Input&lt;br /&gt;
&lt;b&gt;&amp;nbsp;nc&lt;/b&gt;= Lavoro&lt;br /&gt;
&lt;b&gt;&amp;nbsp;i&lt;/b&gt; = Input&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;b&gt;- Selezione&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;- Iterazione&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;Ripeti&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;input&amp;nbsp;n&lt;br /&gt;
&amp;nbsp; &amp;nbsp;d = numero casuale tra 1 e 6&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// dado&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;nc= numero casuale tra 1 e 6&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// giocata pc&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;Se&lt;/b&gt; (n==d) &lt;b&gt;Allora &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b&gt;Se&lt;/b&gt;&amp;nbsp;(nc==d)&amp;nbsp;&lt;b&gt;Allora &lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//n=d &amp;amp; nc=d&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output &quot;pareggio!&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;Altrimenti&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;output &quot;hai vinto&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;Fine se&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;Altrimenti &lt;span style=&quot;color: #6aa84f;&quot;&gt;// &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;n!=d&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Se &lt;/b&gt;(nc==d)&lt;b&gt; Allora&lt;/b&gt; &lt;span style=&quot;color: #6aa84f;&quot;&gt;//n!=d &amp;amp; nc=d&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output&quot;ha vinto il pc&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Altrimenti &lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//n!=d &amp;amp; nc!=d&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output&quot;nessun vincitore&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Fine se&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;Fine se&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&amp;nbsp;output&quot;vuoi riprovare? s=1 n=0&quot;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;input i&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;Se&lt;/b&gt; (i!=1 &amp;amp;&amp;amp; i!=0) &lt;b&gt;Allora&lt;/b&gt; &lt;span style=&quot;color: #6aa84f;&quot;&gt;//se il numero inserito non è corretto&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b&gt;Mentre&lt;/b&gt;(i!=0 &amp;amp;&amp;amp;i!=1) &lt;b&gt;Ripeti&lt;/b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//ripete finche&amp;nbsp;non si inserisce 0;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt; input i&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fine mentre&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;Fine se&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Metre (i==1)&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/Jw6X1x&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Gioco dado V1.2&lt;/h4&gt;
-Aggiunta possibilità di scegliere con quanti dadi giocare.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/xqs5KA&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: none;&quot;&gt;
Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand&lt;b&gt;Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand&lt;/b&gt;&lt;br /&gt;
&lt;h1&gt;
Esercitazioni,Wihile,Ciclo pre-condizionato,Ciclo post-condizionato,Selezione-if,Gioco-dadi,Srand,Rand&lt;/h1&gt;
Gioco dadi v1
Extra:
corso c forumfree
corso c forumfree
linguaggio c
sdr corso c
medicina sapienza corso c
noi del corso c
quelli del corso c
corso di programmazione c
linguaggio c guida alla programmazione

&lt;/div&gt;

&lt;div class=&quot;separator&quot; style=&quot;display:none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/8530607478471014481/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/esercitazione-1crea-un-gioco-che-simula.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8530607478471014481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8530607478471014481'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/esercitazione-1crea-un-gioco-che-simula.html' title='Esercitazione 1...Crea un gioco che simula una partita ai dadi'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-3631193904443616220</id><published>2014-10-27T09:54:00.000+01:00</published><updated>2014-11-19T11:47:13.188+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algoritmo"/><category scheme="http://www.blogger.com/atom/ns#" term="Codici"/><category scheme="http://www.blogger.com/atom/ns#" term="Programmi"/><title type='text'>Stampa numeri pari o dispari</title><content type='html'>
&lt;style&gt;.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;
&lt;script src=&quot;http://ideone.com/e.js/jFHLNX&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;div style=&quot;display: none;&quot;&gt;
Extra:
corso c forumfree
corso c forumfree
linguaggio c
sdr corso c
medicina sapienza corso c
noi del corso c
quelli del corso c
corso di programmazione c
linguaggio c guida alla programmazione&lt;/div&gt;
&lt;style&gt;
.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;&lt;div class=&quot;separator&quot; style=&quot;display: none; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/3631193904443616220/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/blog-post.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3631193904443616220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3631193904443616220'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/blog-post.html' title='Stampa numeri pari o dispari'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-6979419834357234367</id><published>2014-10-24T14:50:00.000+02:00</published><updated>2014-11-14T16:04:27.784+01:00</updated><title type='text'>VI Lezione - I costrutti</title><content type='html'>&lt;style&gt;
.lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:white;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:white;
 
}
 

.code td{border:1px solid black;padding: 5px;vertical-align:top;}
.code{width:100%;}
 .column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;

 

&lt;br /&gt;
&lt;div class=&quot;AC&quot; style=&quot;left: -9999px; position: absolute;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/h120/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihGRa6HR16dOPT1F0tuL5VCrblm0N3Bv1opWEsGCwL4NJZd91m9zh2O4s0rxAyEdSY5JF86hN3SazGeb18-wxsdkE-GxG5hO84KIXtuOE0n11eTgoJpct-oVGekM2PFwiFHpcE-ddTMYby/w140-h140-p/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: black;&quot;&gt;
VI Lezione.&lt;/h2&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h4&gt;
I costrutti&lt;/h4&gt;
&lt;b&gt;(sequenza,selezione,iterazione) &lt;/b&gt;&lt;br /&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Il &lt;b&gt;teorema di Bohm-Jacopini&lt;/b&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;ci dice che :&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;border-radius: 5px; border: 1px solid black; margin: 7px; padding: 10px;&quot;&gt;
&lt;b&gt;Qualsiasi algoritmo può essere descritto utilizzando solo tre strutture di controllo: sequenza, selezione, iterazione.&lt;/b&gt;&lt;/div&gt;
&lt;ol&gt;&lt;br /&gt;
&lt;li&gt;&amp;nbsp;&lt;b&gt;la sequenza.&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;La sequenza è la struttura per la quale le istruzioni vengono esguite in serie una dopo l&#39;altra&amp;nbsp;&lt;/span&gt; 
 
&lt;table style=&quot;margin-left: -40px; margin-top: 20px;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;CODICE&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;FLOW CHART&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB9yvoUa6OZdbnA8EvuTWFvSJ5Bp_H5d_UZyYD9KpHDDtkpCGhC8udQWN609IbHKuE913vaWKoeIfHNNlR6WAv9jhce4xMGELxRwGHzm_2_WGQEnoMXXGIMfoJTB9RaJ2X4ebQfRo4fZwg/s1600/sequenza+dev.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB9yvoUa6OZdbnA8EvuTWFvSJ5Bp_H5d_UZyYD9KpHDDtkpCGhC8udQWN609IbHKuE913vaWKoeIfHNNlR6WAv9jhce4xMGELxRwGHzm_2_WGQEnoMXXGIMfoJTB9RaJ2X4ebQfRo4fZwg/s1600/sequenza+dev.PNG&quot; height=&quot;122&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0slfImYIYs9bxAS6C-ThunBic3aoGABkEXpVb1p_ro2mTz0pU4rm9EiNM7U0K4J7aHF5TiQPxl4vw7eMot9l3ES2KDb9MPU2AXz7pHCf1r6sbYSmyL2ECmwUh98U_-sSP7g-SMpMqBpQq/s1600/sequenza.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0slfImYIYs9bxAS6C-ThunBic3aoGABkEXpVb1p_ro2mTz0pU4rm9EiNM7U0K4J7aHF5TiQPxl4vw7eMot9l3ES2KDb9MPU2AXz7pHCf1r6sbYSmyL2ECmwUh98U_-sSP7g-SMpMqBpQq/s1600/sequenza.PNG&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;La selezione.&lt;/b&gt;&lt;br /&gt;La selezione ci permette di effettuare dei confronti sui dati, creando un bivio nell&#39;ordine di esecuzione delle istruzioni.&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Sintassi:&lt;/span&gt;&lt;br /&gt;&lt;b&gt;if&lt;/b&gt;(&lt;i&gt;condizione&lt;/i&gt;) {&lt;br /&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//blocco istruzioni&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;Se la condizione risulta soddisfatta allora il programma eseguirà il blocco delle istruzioni contenute all&#39;interno delle due parentesi graffe,altrimenti salterà il blocco delle istruzioni.&lt;br /&gt;&lt;table style=&quot;margin-left: -40px; margin-top: 20px;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;CODICE&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;FLOW CHART&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZop7Ko963I35EnxCx_qBemquJFzHBThD966S2EEIDRrFHdlZMCfHQ3Nq3U608LS0G_at4VT4quEQkcReXOHvziBjBfU0b-5PiaVD5W2RZFx3MzOfvcIqgFE7_i4xokgAXF68PIqzFBuzL/s1600/Selezione.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZop7Ko963I35EnxCx_qBemquJFzHBThD966S2EEIDRrFHdlZMCfHQ3Nq3U608LS0G_at4VT4quEQkcReXOHvziBjBfU0b-5PiaVD5W2RZFx3MzOfvcIqgFE7_i4xokgAXF68PIqzFBuzL/s1600/Selezione.PNG&quot; height=&quot;136&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;&lt;i&gt;Nella Prossima lezione vedremo come &lt;br /&gt;impostare una condizione e&lt;br /&gt;analizzeremo tutti i casi della selezione.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf0Wpig-bEZBuc8HH0nLZJZnn2cqA7jqs786JZsHmz6kwzaf1ZKDowVyJ8n3OoyP25jscBfYIWw5AYQQF506e8oxYTku8qVxUR59uiQmKt-88jLT5eseKcqBC6qPtbzwon3TB-Krd5p7rL/s1600/selezione+flow+chart.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf0Wpig-bEZBuc8HH0nLZJZnn2cqA7jqs786JZsHmz6kwzaf1ZKDowVyJ8n3OoyP25jscBfYIWw5AYQQF506e8oxYTku8qVxUR59uiQmKt-88jLT5eseKcqBC6qPtbzwon3TB-Krd5p7rL/s1600/selezione+flow+chart.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;L&#39;iterazione&lt;/b&gt;L&#39;iterazione è quella struttura che permette di ripetere dei blocchi di istruzioni, modificando cosi l&#39;ordine con il quale vengono eseguite le istruzioni.&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Sintassi:&lt;/span&gt;&lt;br /&gt;&lt;b&gt;while&lt;/b&gt;(&lt;i&gt;condizione&lt;/i&gt;) {&lt;br /&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;//blocco istruzioni&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;table style=&quot;margin-left: -40px; margin-top: 20px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;CODICE&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;FLOW CHART&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_YaidE-ZvsZPFD-PJsoM-TF4y2V2i2VjPTStAAvQCzkCL5Plfx7ZgAc_Ai5qkQpdb1B_NZrD2QL-y96sUZ5eefG5brQvwkxX83WB0T8XgQZOPozAxorb0Z-HV_ssVeDPa1cCSLcWhuRVz/s1600/Selezione.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_YaidE-ZvsZPFD-PJsoM-TF4y2V2i2VjPTStAAvQCzkCL5Plfx7ZgAc_Ai5qkQpdb1B_NZrD2QL-y96sUZ5eefG5brQvwkxX83WB0T8XgQZOPozAxorb0Z-HV_ssVeDPa1cCSLcWhuRVz/s1600/Selezione.PNG&quot; height=&quot;150&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;&lt;i&gt;Prossimamente analizzeremo meglio tutti i casi dell&#39;iterazione.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf0Wpig-bEZBuc8HH0nLZJZnn2cqA7jqs786JZsHmz6kwzaf1ZKDowVyJ8n3OoyP25jscBfYIWw5AYQQF506e8oxYTku8qVxUR59uiQmKt-88jLT5eseKcqBC6qPtbzwon3TB-Krd5p7rL/s1600/selezione+flow+chart.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf0Wpig-bEZBuc8HH0nLZJZnn2cqA7jqs786JZsHmz6kwzaf1ZKDowVyJ8n3OoyP25jscBfYIWw5AYQQF506e8oxYTku8qVxUR59uiQmKt-88jLT5eseKcqBC6qPtbzwon3TB-Krd5p7rL/s1600/selezione+flow+chart.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/6979419834357234367/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/vi-lezione-i-costrutti.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6979419834357234367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/6979419834357234367'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/vi-lezione-i-costrutti.html' title='VI Lezione - I costrutti'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-2850306420444764524</id><published>2014-10-23T10:45:00.000+02:00</published><updated>2014-11-10T12:40:05.235+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Direttive di conversione"/><category scheme="http://www.blogger.com/atom/ns#" term="Tipi di variabile C"/><category scheme="http://www.blogger.com/atom/ns#" term="Variabili C"/><title type='text'>Direttive di conversione C</title><content type='html'>&lt;b:if cond=&#39;data:blog.url == data:post.url&#39;&gt;
&lt;style&gt;.column-right-outer{display:none;}
.Blog{width:1080px;}&lt;/style&gt;
&lt;/b:if&gt;
&lt;style&gt; 
.tabular{width:100%;line-height:40px;padding:5px}
.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;

&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0pt&quot; class=&quot;tabular&quot; frame=&quot;border&quot; id=&quot;TBL-30-&quot; rules=&quot;groups&quot;&gt;&lt;colgroup id=&quot;TBL-30-1g&quot;&gt;&lt;col id=&quot;TBL-30-1&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;colgroup id=&quot;TBL-30-2g&quot;&gt;&lt;col id=&quot;TBL-30-2&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;colgroup id=&quot;TBL-30-3g&quot;&gt;&lt;col id=&quot;TBL-30-3&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr class=&quot;hline&quot;&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-1-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-1-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;span class=&quot;aebx-9&quot;&gt;Valore&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-1-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;span class=&quot;aebx-9&quot;&gt;Tipo          &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-1-3&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;span class=&quot;aebx-9&quot;&gt;Significato&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;                                                                   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;hline&quot;&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;hline&quot;&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-2-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-2-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%d    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-2-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;int         &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-2-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un numero intero in formato decimale con segno&lt;/span&gt;                  &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-3-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-3-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%i    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-3-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;int         &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-3-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Identico a &lt;/span&gt;&lt;span class=&quot;aett-9&quot;&gt;%i &lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;in output,&lt;/span&gt;                                                             &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-4-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-4-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%o    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-4-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;unsigned int&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-4-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un numero intero come ottale&lt;/span&gt;                                           &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-5-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-5-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%u    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-5-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;unsigned int&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-5-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un numero intero in formato decimale senza segno&lt;/span&gt;               &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-6-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-6-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%x&lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;aett-9&quot;&gt;%X &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-6-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;unsigned int&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-6-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampano un intero in formato esadecimale, rispettivamente con lettere&lt;/span&gt;
 &lt;span class=&quot;aer-9&quot;&gt;minuscole e maiuscole.&lt;/span&gt;                                                               &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-7-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-7-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%f    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-7-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;double      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-7-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un numero in virgola mobile con la notazione a virgola fissa&lt;/span&gt;   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-8-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-8-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%e&lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;aett-9&quot;&gt;%E &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-8-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;double      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-8-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampano un numero in virgola mobile con la notazione esponenziale,&lt;/span&gt;
 &lt;span class=&quot;aer-9&quot;&gt;rispettivamente con lettere minuscole e maiuscole.&lt;/span&gt;                           &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-9-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-9-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%g&lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;aett-9&quot;&gt;%G &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-9-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;double      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-9-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampano un numero in virgola mobile con la notazione pi&lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;ù appropriate&lt;/span&gt;
 &lt;span class=&quot;aer-9&quot;&gt;delle due precedenti, rispettivamente con lettere minuscole e maiuscole.&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-10-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-10-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%a&lt;/span&gt;&lt;span class=&quot;aer-9&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;aett-9&quot;&gt;%A &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-10-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;double      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-10-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampano  un  numero  in  virgola  mobile  in  notazione  esadecimale&lt;/span&gt;
 &lt;span class=&quot;aer-9&quot;&gt;frazionaria&lt;/span&gt;                                                                               &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-11-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-11-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%c    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-11-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;int         &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-11-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un carattere singolo&lt;/span&gt;                                                       &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-12-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-12-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%s    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-12-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;char *      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-12-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa una stringa&lt;/span&gt;                                                                   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-13-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-13-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%p    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-13-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;void *      &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-13-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa il valore di un puntatore&lt;/span&gt;                                                 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-14-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-14-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%n    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-14-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;&amp;amp;int        &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-14-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Prende il numero di caratteri stampati finora&lt;/span&gt;                                 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-15-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-15-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;span class=&quot;aett-9&quot;&gt;%%    &lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-15-2&quot; nowrap=&quot;nowrap&quot;&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-15-3&quot;&gt;&lt;span class=&quot;aer-9&quot;&gt;Stampa un %&lt;/span&gt;                                                                           &lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;hline&quot;&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;td&gt;&lt;hr /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr id=&quot;TBL-30-16-&quot; valign=&quot;baseline&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td11&quot; id=&quot;TBL-30-16-1&quot; nowrap=&quot;nowrap&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;!--&quot;|l|l|p{10cm}|&quot;--&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;display:none;&quot;&gt; Corso C, Direttive di conversione, Tipi di variabile C, Variabili C&lt;b&gt; Corso C, Direttive di conversione, Tipi di variabile C, Variabili C&lt;/b&gt;&lt;h2&gt; Corso C, Direttive di conversione, Tipi di variabile C, Variabili C&lt;/h2&gt;

Extra:
corso c forumfree
corso c forumfree
linguaggio c
sdr corso c
medicina sapienza corso c
noi del corso c
quelli del corso c
corso di programmazione c
linguaggio c guida alla programmazione
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/2850306420444764524/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/direttive-di-conversione-c.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/2850306420444764524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/2850306420444764524'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/direttive-di-conversione-c.html' title='Direttive di conversione C'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-7311738965554678590</id><published>2014-10-20T16:26:00.002+02:00</published><updated>2014-10-27T10:48:51.630+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algoritmo"/><category scheme="http://www.blogger.com/atom/ns#" term="Codici"/><category scheme="http://www.blogger.com/atom/ns#" term="Programmi"/><title type='text'>Controlla se un numero è compreso in 3 range di numeri</title><content type='html'>&lt;style&gt;.column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://ideone.com/e.js/56SJAN&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/7311738965554678590/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/import-import-int-main-int-variabile.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7311738965554678590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7311738965554678590'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/import-import-int-main-int-variabile.html' title='Controlla se un numero è compreso in 3 range di numeri'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-7504103554418865462</id><published>2014-10-12T17:55:00.000+02:00</published><updated>2014-10-31T13:43:30.779+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compilatore"/><category scheme="http://www.blogger.com/atom/ns#" term="debugger"/><category scheme="http://www.blogger.com/atom/ns#" term="Dev C++"/><category scheme="http://www.blogger.com/atom/ns#" term="editor"/><category scheme="http://www.blogger.com/atom/ns#" term="IDE"/><category scheme="http://www.blogger.com/atom/ns#" term="Integrated Development Envirolment"/><category scheme="http://www.blogger.com/atom/ns#" term="linker"/><category scheme="http://www.blogger.com/atom/ns#" term="loader"/><title type='text'>IDE - Integrated Development Environment</title><content type='html'>&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}
 
    div.contents3 {
        color: #222;
        font-family: Verdana;
        font-size: 12px;
        background-color: #fff;
        padding:-25px 15px 15px 15px;
        width: 600px;
        height: 200px;
        line-height: 13px;
  margin:5px 10px 50px 10px;
    }
 .block{border:1px solid;padding:5px;}
#container3 { clear: both;
    height: 200px; /* 350px + 25px (padding sx) + 25px (padding dx) */
    overflow: hidden;
border:1px solid ;

 }
 
 &lt;/style&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span id=&quot;goog_520948116&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_520948117&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60HN8PsyQGYH3uQQ_1_3jZFu_Xk_3lKgEeNp-7hH6zG3h1GurmXUlJPaTMCy5RfOCj51yJ4N1jOgubM1Gc0xgETcDYdEGvFGO4LTEOK6e_w4F4PTdnpZjiDvf_Q5JRlUA5RUNzHR6rS00/s1600/integrated-development-environment-ide-300x213.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60HN8PsyQGYH3uQQ_1_3jZFu_Xk_3lKgEeNp-7hH6zG3h1GurmXUlJPaTMCy5RfOCj51yJ4N1jOgubM1Gc0xgETcDYdEGvFGO4LTEOK6e_w4F4PTdnpZjiDvf_Q5JRlUA5RUNzHR6rS00/s1600/integrated-development-environment-ide-300x213.jpg&quot; height=&quot;163&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;h2&gt;
(Approfondimenti)&lt;/h2&gt;
&lt;h4&gt;
Integrated Development Environment&lt;/h4&gt;
&lt;br /&gt;
&lt;b&gt;Ambiente di sviluppo integrato&lt;/b&gt;&lt;br /&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div border=&quot;0&quot; id=&quot;container3&quot;&gt;
&lt;div class=&quot;contents3&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Editor&quot; name=&quot;Editor&quot;&gt;&lt;/a&gt; 
    
   &lt;br /&gt;
&lt;h2&gt;
   &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Editor:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
     Un editor di testo è un programma che permette di creare e modificare file di testo con estensione .txt , i file .txt solo ed esclusivamente con i caratteri presenti nella tabella ASCII , per cui non è possibile inserire al suo interno oggetti come tabelle o immagini, questo tipo di editor è fondamentale nel&#39; ambito della programmazione , perchè &lt;b&gt;permette di creare il file sorgente &lt;/b&gt;del programma.&lt;/span&gt;
   
   &lt;/div&gt;
&lt;div class=&quot;contents3&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Linker&quot; name=&quot;Linker&quot;&gt;&lt;/a&gt; 
    
   &lt;br /&gt;
&lt;h2&gt;
   &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Linker:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
    Il linker è un programma che &lt;b&gt;collega i moduli oggetto&lt;/b&gt; creati dal compilatore, &lt;b&gt;con le librerie&lt;/b&gt; necessarie per l&#39;esecuzione del programma, e &lt;b&gt;restituisce&lt;/b&gt; il file necessario per l&#39;esecuzione del programma (&lt;b&gt;eseguibile&lt;/b&gt;).&lt;/span&gt;
   
   &lt;/div&gt;
&lt;div class=&quot;contents3&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Debugger&quot; name=&quot;Debugger&quot;&gt;&lt;/a&gt; 
&lt;br /&gt;
&lt;h2&gt;
   &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Debugger:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
     Il debugger è un programma che ci &lt;b&gt;permette di individuare eventuali errori logici&lt;/b&gt;, è una fase critica dell&#39;ottimizzazione di un programma in quanto bisogna prevedere ogni eventuale comportamento del programma, ogni errore (bug) non previsto potrebbe portare a spiacevoli conseguenze(es:intrusioni su un database da parte di terzi),in pratica in questa fase dobbiamo essere abili nel trovare tutti gli evenutiali bug, e correggerli in modo opportuno. &lt;/span&gt;
   
   &lt;/div&gt;
&lt;div class=&quot;contents3&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Loader&quot; name=&quot;Loader&quot;&gt;&lt;/a&gt; 
    
   &lt;br /&gt;
&lt;h2&gt;
   &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Loader:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
     Il loader ha la funzione di prelevare il programma dal disco fisso (hard disk) e di caricarlo sulla memoria RAM in modo che sia accessibile alla cpu, il suo scopo quindi è quello di &lt;b&gt;caricare l&#39;esecuzione del programma&lt;/b&gt; già compilato&lt;/span&gt;
   
   &lt;/div&gt;
&lt;div class=&quot;contents3&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Compilatore1&quot; name=&quot;Compilatore1&quot;&gt;&lt;/a&gt; 
    
   &lt;br /&gt;
&lt;h2&gt;
   &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Compilatore:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
     Il compilatore, come già accennato precedentemente , è un programma in grado di tradurre una serie di istruzioni presenti nel file sorgente in linguaggio macchina, le fasi di traduzione si dividono in due fasi:
&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;b&gt;Front end:&lt;/b&gt; è la prima fase dove le istruzioni vengono tradotte in un linguaggio intermedio in genere specifico del compilatore; successivamente vengono effettuati sul codice dei controlli di &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Sintassi&quot; target=&quot;_blank&quot;&gt;sintassi&lt;/a&gt;,&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Grammatica&quot; target=&quot;_blank&quot;&gt;grammatica&lt;/a&gt; e &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Semantica&quot; target=&quot;_blank&quot;&gt;semantica&lt;/a&gt; sul codice, per &lt;b&gt;verificare la presenza di eventuali errori&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;b&gt;Back end:&lt;/b&gt; in questa seconda ed ultima fase il codice in linguaggio intermedio viene ottimizzato e tradotto&lt;b&gt; in linguaggio macchina&lt;/b&gt; poi vengono creati i &lt;b&gt;moduli oggetto.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
(Clicca sul termine all&#39;interno dell&#39;immagine per visualizzare la definizione)&lt;/h2&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfOe6fE_VJzf95sU-aTm5p_QbMi7lQ-uFBHAUcJfpzu3PKiJkzGny4KdV5IaaY4USRXiwTuyeQo8VCY6BwLpfVTkfmVLLSG22-mYB5lw4WPZ9qbAgDg9tbzs1wIZNIvR2HtBfNXBFxjl5I/s1600/Dev+C+++blog.JPG&quot; usemap=&quot;#Dev C++ blog&quot; /&gt;

&lt;map name=&quot;Dev C++ blog&quot;&gt;
&lt;area coords=&quot;257,9,322,38&quot; href=&quot;http://www.bloodshed.net/dev/devcpp.html&quot; shape=&quot;rect&quot; target=&quot;_BLANK&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;30,187,83,212&quot; href=&quot;#Editor&quot; shape=&quot;rect&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;130,186,208,210&quot; href=&quot;#Compilatore1&quot; shape=&quot;rect&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;266,184,314,211&quot; href=&quot;#Linker&quot; shape=&quot;rect&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;401,186,458,211&quot; href=&quot;#Loader&quot; shape=&quot;rect&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;535,188,606,213&quot; href=&quot;#Debugger&quot; shape=&quot;rect&quot;&gt;&lt;/area&gt;

&lt;/map&gt;


&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; width=&quot;50%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/traduttori-interpretecompilatoreassembl.html&quot;&gt;&lt;b&gt; &amp;lt;&amp;lt; Traduttori&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;50%&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;display:none;&quot;&gt;dev c++ download
dev c++ windows 8
dev c++ windows 7
come usare dev c++
dev c++ italiano
dev c++ guida
dev c++ softonic
dev c++ 4.9.9.2 italiano
ide investimenti diretti esteri
ide informatica
hard disk ide
ide c++
python ide
arduino ide
mplab ide
ide economia
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/7504103554418865462/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/ide-integrated-development-environment.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7504103554418865462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7504103554418865462'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/ide-integrated-development-environment.html' title='IDE - Integrated Development Environment'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60HN8PsyQGYH3uQQ_1_3jZFu_Xk_3lKgEeNp-7hH6zG3h1GurmXUlJPaTMCy5RfOCj51yJ4N1jOgubM1Gc0xgETcDYdEGvFGO4LTEOK6e_w4F4PTdnpZjiDvf_Q5JRlUA5RUNzHR6rS00/s72-c/integrated-development-environment-ide-300x213.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-5910446568311558928</id><published>2014-10-10T13:08:00.001+02:00</published><updated>2014-10-15T11:36:07.460+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Approfondimenti"/><category scheme="http://www.blogger.com/atom/ns#" term="assemblatore"/><category scheme="http://www.blogger.com/atom/ns#" term="compilatore"/><category scheme="http://www.blogger.com/atom/ns#" term="interprete"/><category scheme="http://www.blogger.com/atom/ns#" term="linker"/><category scheme="http://www.blogger.com/atom/ns#" term="Traduttore"/><title type='text'>Traduttori (Interprete,compilatore,assemblatore)</title><content type='html'>&lt;style&gt;
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}
 
    div.contents2 {
        color: #222;
        font-family: Verdana;
        font-size: 12px;
        background-color: #fff;
        padding:-25px 15px 15px 15px;
        width: 600px;
        height: 200px;
        line-height: 13px;
  margin:5px 10px 50px 10px;
    }
 .block{border:1px solid;padding:5px;}
#container2 { clear: both;
    height: 180px; /* 350px + 25px (padding sx) + 25px (padding dx) */
    overflow: hidden;
border:1px solid ;

 }
 
 &lt;/style&gt;

&lt;br /&gt;
&lt;h2&gt;
(Approfondimenti)&lt;/h2&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; 
&lt;br /&gt;
&lt;div border=&quot;0&quot; id=&quot;container2&quot;&gt;
&lt;div class=&quot;contents2&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Traduttore&quot; name=&quot;Traduttore&quot;&gt;&lt;/a&gt; 
    
 &lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Traduttore:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
  Un traduttore ha la funzione di tradurre un file sorgente ,scritto in linguaggio di alto o basso livello in linguaggio macchina.&lt;br /&gt;
  Possiamo dividere i traduttori in tre tipi:
 &lt;/span&gt;
 &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/traduttori-interpretecompilatoreassembl.html#Interprete&quot;&gt;Interprete&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/traduttori-interpretecompilatoreassembl.html#Compilatore&quot;&gt;Compilatore&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/traduttori-interpretecompilatoreassembl.html#Assemblatore&quot;&gt;Assemblatore&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;contents2&quot; id=&quot;Interprete1&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Interprete&quot; name=&quot;Interprete&quot;&gt;&lt;/a&gt;
 
 &lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Interprete:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
 L&#39; interprete traduce in tempo reale(durante l&#39;esecuzione del programma), le istruzioni presenti nel file sorgente, scritte con un linguaggio ad alto livello, in linguaggio macchina.&lt;/span&gt;
   

 &lt;/div&gt;
&lt;div class=&quot;contents2&quot; id=&quot;Compilatore1&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Compilatore&quot; name=&quot;Compilatore&quot;&gt;&lt;/a&gt;
 
 &lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Compilatore:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
 Il compilatore traduce&amp;nbsp; il file sorgente (scritto in linguaggio di alto livello) in files oggetto(.obj),questi files vengono poi uniti dal linker che ne crea il file eseguibile (in linguaggio macchina), in questo modo rende possibile l&#39;esecuzione del programma senza il file sorgente.&amp;nbsp;&lt;/span&gt;
   

 &lt;/div&gt;
&lt;div class=&quot;contents2&quot; id=&quot;Assemblatore1&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Assemblatore&quot; name=&quot;Assemblatore&quot;&gt;&lt;/a&gt;
 
 &lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Assemblatore:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;
 L&#39;assemblatore traduce il file sorgente, scritto in linguaggio assemblativo (a basso livello) in linguaggio macchina.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&lt;/span&gt;
   

 &lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
(Clicca sul termine all&#39;interno dell&#39;immagine per visualizzare la definizione)&lt;/h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;immagine&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWMj3lVyeYAou6PRaPhWj3qqkvZ9V-oui7QW_c5noYNq5bEp53i5jIeBisGRu4Ynaq__JgB8cb6WkVXUI1gd7_0sXZhtwfcqnLUa4WKS4JxY4VhBel8ngTBKDNpEaApavzttQDkDRc5Nwx/s1600/traduttore1.GIF&quot; style=&quot;margin-left: 90px; margin-top: 30px;&quot; usemap=&quot;#traduttore1&quot; /&gt;

&lt;map name=&quot;traduttore1&quot;&gt;
&lt;area coords=&quot;148,24,295,66&quot; href=&quot;#Traduttore&quot; shape=&quot;rect&quot; target=&quot;&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;23,163,110,190&quot; href=&quot;#Interprete&quot; shape=&quot;rect&quot; target=&quot;&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;175,163,271,190&quot; href=&quot;#Compilatore&quot; shape=&quot;rect&quot; target=&quot;&quot;&gt;&lt;/area&gt;
&lt;area coords=&quot;323,164,435,191&quot; href=&quot;#Assemblatore&quot; shape=&quot;rect&quot; target=&quot;&quot;&gt;&lt;/area&gt;

&lt;/map&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #ccffcc; border: 1px dashed black; color: black; margin: 20px; padding: 20px;&quot;&gt;
&lt;h3&gt;
Tipo&lt;/h3&gt;
In informatica nell&#39;ambito della programmazione la parola &quot;tipo&quot; viene spesso utilizzata quando si parla di variabili,ma cos&#39;è un tipo?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggiOGVNkrA0WEKZLIYcGbwY7RDyTQZ3vRoLLu6WTRITQ1i0LP9JJQljmBeUrZs8qnismUSiI-kmpqDtBnEIzyGMnT15wAMSFviHynzBkSIJHb0OLSDipqQaukfpMRSSF9NpxyevTm_AfE_/s1600/TIPO.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggiOGVNkrA0WEKZLIYcGbwY7RDyTQZ3vRoLLu6WTRITQ1i0LP9JJQljmBeUrZs8qnismUSiI-kmpqDtBnEIzyGMnT15wAMSFviHynzBkSIJHb0OLSDipqQaukfpMRSSF9NpxyevTm_AfE_/s1600/TIPO.PNG&quot; height=&quot;136&quot; width=&quot;450&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Il tipo è una classificazione, ci dice quali regole bisogna seguire,quali proprietà e caratteristiche ha quell&#39; elemento.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; width=&quot;50%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html&quot;&gt;&lt;b&gt; &amp;lt;&amp;lt; Cos&#39;è un linguaggio di programmazione&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;50%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/ide-integrated-development-environment.html&quot;&gt;&lt;b&gt;  IDE-Ambiente di sviluppo integrato &gt;&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/5910446568311558928/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/traduttori-interpretecompilatoreassembl.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/5910446568311558928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/5910446568311558928'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/traduttori-interpretecompilatoreassembl.html' title='Traduttori (Interprete,compilatore,assemblatore)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWMj3lVyeYAou6PRaPhWj3qqkvZ9V-oui7QW_c5noYNq5bEp53i5jIeBisGRu4Ynaq__JgB8cb6WkVXUI1gd7_0sXZhtwfcqnLUa4WKS4JxY4VhBel8ngTBKDNpEaApavzttQDkDRc5Nwx/s72-c/traduttore1.GIF" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-7007041353020601387</id><published>2014-10-06T13:10:00.001+02:00</published><updated>2014-10-15T11:33:16.754+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Approfondimenti"/><category scheme="http://www.blogger.com/atom/ns#" term="linguaggio alto livello"/><category scheme="http://www.blogger.com/atom/ns#" term="linguaggio basso livello"/><category scheme="http://www.blogger.com/atom/ns#" term="linguaggio di programmazione"/><category scheme="http://www.blogger.com/atom/ns#" term="linguaggio macchina"/><title type='text'>Cos&#39;è un linguaggio di programmazione</title><content type='html'>&lt;style&gt;
 
 .lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:#fff;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:#fff;
 
}



.tabss1 { font-family: Verdana, sans-serif; font-size: 12px; }
.tabss1 li {
    list-style: none;
    float: left;
    width: 100px;
    height: 100px;
    margin: 0 6px -30px;
}
 
    .tabss1 li a {
        background-color: #dedede;
        color: #222;
        font-weight: bold;
        text-decoration: none;
        width: 160px;
        height: 35px;
        display: block;
        float: left;
        line-height: 35px;
        text-align: center;
    }
        .tabss1 li a:hover,
        .tabss1 li a:active { background-color: #ededed; }
 
    div.contents1 {
        color: #222;
        font-family: Verdana;
        font-size: 12px;
        background-color: #fff;
        padding:-25px 15px 15px 15px;
        width: 600px;
        height: 100px;
        line-height: 13px;
  margin:-10px 10px 50px 10px;
    }
 .block{border:1px solid;padding:5px;}
#container1 { clear: both;
    height: 180px; /* 350px + 25px (padding sx) + 25px (padding dx) */
    overflow: hidden;
border:1px solid ;

 }
#semantica{margin-top:-30px;margin-bottom:10px;padding:bottom:10px;}
 &lt;/style&gt;

&lt;map name=&quot;linguaggio&quot;&gt;
&lt;area alt=&quot;Insieme di regole&quot; coords=&quot;236,221,109,252&quot; href=&quot;#Regole&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Insieme di regole&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Grammatica&quot; coords=&quot;363,284,277,309&quot; href=&quot;#Grammatica&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Grammatica&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Linguaggio di programmazione&quot; coords=&quot;242,85,104,137&quot; href=&quot;#Linguaggio&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Linguaggio&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Semantica&quot; coords=&quot;75,285,7,308&quot; href=&quot;#Semantica&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Semantica&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Sintassi&quot; coords=&quot;195,365,143,387&quot; href=&quot;#Sintassi&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Sintassi&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Grammatica&quot; coords=&quot;424,219,503,242&quot; href=&quot;#Grammatica&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Grammatica&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Alfabeto&quot; coords=&quot;559,195,617,219&quot; href=&quot;#Alfabeto&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Alfabeto&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Dizionario&quot; coords=&quot;578,100,647,124&quot; href=&quot;#Dizionario&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Dizionario&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;Sintassi&quot; coords=&quot;540,7,595,31&quot; href=&quot;#Sintassi&quot; shape=&quot;rect&quot; target=&quot;&quot; title=&quot;Sintassi&quot;&gt;&lt;/area&gt;

&lt;/map&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0yNvTTWBoD4i05sCjXHBPCYtutYPYmx1qSgV2-_e62YXluvJZJPFmFbzJ5YLxksheWcXIy-lzzMbeCo9QxgTJxbjSfSljOwvRDnD5hCVpIpZgO7Wsnt1QheFxwrmYzCNn4eQn-B13wKPF/s1600/appunti-di-programmazione-c_083d08d78534f670cafea3e5032526a5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0yNvTTWBoD4i05sCjXHBPCYtutYPYmx1qSgV2-_e62YXluvJZJPFmFbzJ5YLxksheWcXIy-lzzMbeCo9QxgTJxbjSfSljOwvRDnD5hCVpIpZgO7Wsnt1QheFxwrmYzCNn4eQn-B13wKPF/s1600/appunti-di-programmazione-c_083d08d78534f670cafea3e5032526a5.jpg&quot; height=&quot;143&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;h2&gt;
(Approfondimenti)&lt;/h2&gt;
&lt;h4&gt;
Cos&#39;è un linguaggio di programmazione&lt;/h4&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div border=&quot;0&quot; id=&quot;container1&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Linguaggio&quot; name=&quot;Linguaggio&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;contents1&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Linguaggio:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;Un linguaggio di programmazione, come qualsiasi altro tipo di linguaggio non è altro che un &lt;b&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Regole&quot;&gt;insieme di regole&lt;/a&gt;&lt;/b&gt; prestabilite, studiate per rendere possibile la comunicazione tra i diversi interlocutori che sono a conoscienza dello stesso linguaggio (ES: la lingua italiana non è comprensibile a una persona che parla solo inglese). Il programmatore per interloquire con un elaboratore necessita della conoscienza di un linguaggio di programmazione comprensibile anche alla macchina.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;



&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Regole&quot; name=&quot;Regole&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents1&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #073763;&quot;&gt;Insieme di regole:&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;Qualsiasi linguaggio è composto da un insieme di regole che permettono la comunicazione tra due o più interlocutori, queste regole possiamo suddividerle in tre grandi categorie:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Sintassi&quot;&gt;Sintassi&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Grammatica&quot;&gt;Grammatica&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Semantica&quot;&gt;Semantica&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Grammatica&quot; name=&quot;Grammatica&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;contents1&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Grammatica&quot; name=&quot;Grammatica&quot;&gt;&lt;/a&gt;
 
&lt;span style=&quot;color: #073763;&quot;&gt;Grammatica:&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp;Le regole grammaticali sono quelle che ci impongono , in qualsiasi linguaggio , di utilizzare&lt;b&gt; parole comprensibili&lt;/b&gt;, ovvero presenti nel &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Dizionario&quot;&gt;dizionario&lt;/a&gt; del linguaggio che stiamo utilizzando.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;ES: la parola &quot;vecchio&quot; è grammaticalmente corretta, se scrivo &quot;veccio&quot; è grammaticalmente scorretta in quanto non esiste nel vocabolario italiano &lt;br /&gt;&lt;b&gt;NB:&lt;/b&gt; ogni linguaggio ha delle regole grammaticali diverse, per esempio la parola &quot;udito&quot; per la lingua italiana è grammaticalmente corretta , perchè esiste nel suo dizionario , ma per la lingua inglese non ha significato in quanto non esiste nel suo dizionario.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Sintassi&quot; name=&quot;Sintassi&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents1&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #073763;&quot;&gt;Sintassi :&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Come per la lingua italiana , 
ogni linguaggio di programmazione ha le sue regole di sintassi, ovvero quelle regole che ci dicono &lt;b&gt;quale ordine dobbiamo dare alle parole&lt;/b&gt; per comporre
 una frase &lt;/span&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;,o un instruzione nel caso di un linguaggio di programmazione.&lt;br /&gt;ES: se in italiano dico &quot;Il leone mangia la gazzella&quot; è sintatticamente corretta, se invece dico &quot;il leone la gazzella mangia&quot; è sintatticamente scorretta.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;NB: &lt;/b&gt;come per la grammatica, anche la sintassi ha le sue diversità a seconda del linguaggio che si stà utilizzando, per esempio in inglese è corretto dire &quot;are you happy?&quot; in italiano letteralmente si tradurrebbe &quot;sei tu felice?&quot; , e sintatticamente risualta scorretto.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Semantica&quot; name=&quot;Semantica&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents1&quot; id=&quot;Semantica&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #073763;&quot;&gt;Semantica: &lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;La semantica è quell&#39;insieme di regole che &lt;b&gt;determina se una frase ha un significato&lt;/b&gt;, pur se grammaticalmente e sintatticamente correntta.&lt;br /&gt;ES: analiziamo la frase &quot;Il leone scrive un monte.&quot;&lt;br /&gt;Soggetto: Il leone.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Predicato: scrive.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Complemento oggetto (cosa?): un monte.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Questa frase è sitatticamente corretta (soggetto predicato complemento), ogni parola scritta al suo interno esite sul dizionario italiano, quindi anche grammaticalmente è corretta, ma non ha un significato logico, in questo caso si parla di errore di semantica, e cosi come per la lingua italiana anche un linguaggio di programmazione ha una sua semantica. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Dizionario&quot; name=&quot;Dizionario&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents1&quot; id=&quot;dizionario&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #073763;&quot;&gt;Dizionario:&amp;nbsp; &lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Il dizionario di un linguaggio non è altro che un &lt;b&gt;insieme di parole &lt;/b&gt;formate da simboli contenuti all&#39;interno del suo &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/cose-un-linguaggio-di-programmazione.html#Alfabeto&quot;&gt;alfabeto&lt;/a&gt; . Il significato di una parola dipende strettamente dalla presenza o meno della stessa all&#39;interno di un dizionario.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;Alfabeto&quot; name=&quot;Alfabeto&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents1&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt; &lt;span style=&quot;color: #073763;&quot;&gt;Alfabeto:&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;L&#39; alfabeto è l&#39;&lt;b&gt;inisieme di simboli &lt;/b&gt;utilizzati per comunicare.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;ES: il calcolatore ha un alfabeto di 2 simboli (0,1).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;L&#39;uomo per comunicare ha bisogno di almento 127 simboli.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;Iproblema della differenza tra la quantità di simboli comprensibili da un calcolatore e il numero di simboli utilizzati dall&#39; uomo per comunicare è stata risolta codificando i simboli utilizzati dall&#39;uomo in un sistema binario comprensibile al calcolatore(&lt;a href=&quot;http://www.liceorocci.it/cremoncini/Informatica/tabella_codici_ascii_file/image001.gif&quot; target=&quot;_blank&quot;&gt;codice ASCII&lt;/a&gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;ES:&amp;nbsp; la sequenza binaria &quot;01000001&quot;, equivale alla &quot;A&quot; del nostro alfabeto. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;
(Clicca sul termine all&#39;interno dell&#39;immagine per visualizzare la definizione)&lt;/h2&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilyzaX-tou2iA5O_IUNRyTAYoZEy_irGZ9AjShYLVg6XKfUX4zyrCOODhkMwwzQEt_muoePkqu0UCl6Ubko7mv-4LgsEvTXhkLsgqQh8JZR9fd542TQvVCb-jFKsHrxce91owWHgqU-a72/s1600/Linguaggio.GIF&quot; usemap=&quot;#linguaggio&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;I linguaggio di programmazione sono molteplici ma si possono suddividere in tre categorie principali:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;Linguaggi macchina: &lt;/b&gt;questo tipo di linguaggio non viene propriamente visto come linguaggio di programmazione, ma lo si può classificare comunque come tale.&lt;br /&gt;Senza entrare troppo nel dettaglio di questo linguaggio è bene sapere che:&lt;/span&gt;&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp;Il suo alfabeto è composto da &lt;b&gt;solo due simboli&lt;/b&gt; (binario): 0, 1&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp;I simboli sono organizzati in &quot;parole&quot;, le parole compongono le istruzioni&lt;b&gt;, &lt;/b&gt;le istruzioni sono &lt;b&gt;eseguite direttamente dal processore&lt;/b&gt;(senza essere traditte),che è in grado di svolgere solo operazioni elementari, pertanto le istruzioni di questo linguaggio sono &lt;b&gt;istruzioni elementari&lt;/b&gt;(Somma , sottrazione, divisione, moltiplicazione)&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;Questo tipo di linguaggio è l&#39;&lt;b&gt;unico ad essere comprensibile dal processore&lt;/b&gt;.&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;Linguaggio di basso livello: &lt;/b&gt;è un linguaggio di programmazione studiato per essere più vicino all&#39; hardware, costituito da istruzioni semplici, utilizza un alfabeto più complesso (tabella ASCII), e ogni istruzione viene poi tradotta in linguaggio macchina, ad ogni istruzione di un linguaggio di basso livello ne corrisponde una in linguaggio macchina.&lt;br /&gt;Il&lt;b&gt; vantaggio&lt;/b&gt; principale di questo linguaggio è che l&#39;esecuzione del programma è più veloce essendo studiato per una facile comprensione da parte del processore.&lt;br /&gt;Gli&lt;b&gt; svantaggi &lt;/b&gt;sono che in questo tipo di linguaggio nulla è dato per scontato , nella scrittura di un programma bisogna specificare ogni minimo dettaglio, e questo oltre ad aumentare il rischio di &quot;errore umano&quot;, aumenta notevolmente la lunghezza del codice sorgente.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;Linguaggi di alto livello:&lt;/b&gt; orientato all&#39;uomo, ovvero studiato per facilitare il programmatore nella scrittura del codice sorgente, composto da istruzioni complesse, incomprensibili ad un elaboratore (che è in grado di eseguire solo istruzioni semplici) e molto lontane dall&#39;hardware.&lt;br /&gt;Questi programmi per essere eseguibili dalla CPU devono essere tradotti in linguaggio macchina, per tradurre un istruzione di alto livello sono necessarie più istruzioni in linguaggio macchina.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;50%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/traduttori-interpretecompilatoreassembl.html&quot;&gt;&lt;b&gt;Traduttori &amp;gt;&amp;gt; &lt;/b&gt;&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/7007041353020601387/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/cose-un-linguaggio-di-programmazione.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7007041353020601387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/7007041353020601387'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/cose-un-linguaggio-di-programmazione.html' title='Cos&#39;è un linguaggio di programmazione'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0yNvTTWBoD4i05sCjXHBPCYtutYPYmx1qSgV2-_e62YXluvJZJPFmFbzJ5YLxksheWcXIy-lzzMbeCo9QxgTJxbjSfSljOwvRDnD5hCVpIpZgO7Wsnt1QheFxwrmYzCNn4eQn-B13wKPF/s72-c/appunti-di-programmazione-c_083d08d78534f670cafea3e5032526a5.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-3816863626555054855</id><published>2014-10-01T11:38:00.000+02:00</published><updated>2014-10-27T11:14:21.684+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Corso C"/><category scheme="http://www.blogger.com/atom/ns#" term="Linguaggio di programmazione C"/><category scheme="http://www.blogger.com/atom/ns#" term="Sintassi C"/><title type='text'>V lezione - Dati di input e output (scanf,printf)</title><content type='html'>&lt;style&gt;
.lezione,.lezione:visited{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:white;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:white;
 
}
 

.code td{border:1px solid black;padding: 5px;vertical-align:top;}
.code{width:100%;}
 .column-right-outer{display:block;}
.Blog{width: 688px;}

.aebx-9,.aett-9,.aer-9,td11{margin:5px}&lt;/style&gt;

 

&lt;br /&gt;
&lt;div class=&quot;AC&quot; style=&quot;left: -9999px; position: absolute;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/h120/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihGRa6HR16dOPT1F0tuL5VCrblm0N3Bv1opWEsGCwL4NJZd91m9zh2O4s0rxAyEdSY5JF86hN3SazGeb18-wxsdkE-GxG5hO84KIXtuOE0n11eTgoJpct-oVGekM2PFwiFHpcE-ddTMYby/w140-h140-p/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;h2&gt;
V Lezione.&lt;/h2&gt;
&lt;h4&gt;
Dati di input e output&lt;/h4&gt;
&lt;br /&gt;
&lt;b&gt;(scanf,printf) &lt;/b&gt;&lt;br /&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Correzione programma&amp;nbsp; della &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/09/iv-lezione-primi-passi-per-la.html&quot; target=&quot;_blank&quot;&gt;lezione precedente&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;code&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;h4&gt;
Programma base&lt;/h4&gt;
&lt;b&gt;int &lt;/b&gt;main() &lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x1;&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x2;&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x3;&lt;br /&gt;
&lt;br /&gt;
x1 = 1;&lt;br /&gt;
x2 = 2;&lt;br /&gt;
&amp;nbsp;
&lt;br /&gt;
x3 = x1 + x2;&lt;br /&gt;
&lt;b&gt;return &lt;/b&gt;0;&lt;br /&gt;
} &lt;/td&gt;
&lt;td&gt;&lt;h4&gt;
Programma con inserimento dati(I/O)&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;// Richiamo la libreria contenente l&#39;istruzione che interrompe il programma&lt;/span&gt; &amp;nbsp;

&lt;span style=&quot;color: #38761d;&quot;&gt;#include&amp;lt;stdlib.h&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;/* richiamo la libreria che contiene le istruzioni scanf e printf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;che ci permettono visualizzare i dati I/O */&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;int&lt;/b&gt; main() &lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;//Dichiariamo 3 variabili: x1,x2 conterranno i 2 valori da sommare,x3 il risultato &lt;/span&gt;&lt;br /&gt;
&lt;b&gt;int&lt;/b&gt; x1;&lt;br /&gt;
&lt;b&gt;int&lt;/b&gt; x2;&lt;br /&gt;
&lt;b&gt;int&lt;/b&gt; x3;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;// Assegnamo dei valori dati da tastiera alle variabili x1,x2 (Input)&lt;/span&gt;&lt;br /&gt;
printf(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;inserisci il primo numero \n&quot;&lt;/span&gt;);&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt; //output&amp;nbsp; messaggio&lt;/span&gt; &lt;br /&gt;
scanf(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;x1);&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; // input dato.&lt;/span&gt;&lt;br /&gt;
printf(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;inserisci il secondo numero \n&quot;&lt;/span&gt;);&lt;br /&gt;
scanf(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;x2);&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;// Sommiamo x1 e x2 e assegnamo il valore del risultato a x3&lt;/span&gt;&lt;br /&gt;
x3 = x1 + x2;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;// Visualiziamo il risultato (Output)&lt;/span&gt;&lt;br /&gt;
printf(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;%d + %d = %d \n&quot;&lt;/span&gt;,x1,x2,x3);&lt;br /&gt;
system(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;pause&quot;&lt;/span&gt;);&lt;span style=&quot;color: #0b5394;&quot;&gt;/* fermiamo il programma&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;in alternativa si può usare il comando getch() */&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;return&lt;/b&gt; 0;&lt;br /&gt;
}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;A cosa farà questo programma?&lt;/b&gt;&lt;br /&gt;
Avviato il programma ci chiederà di inserire i due numeri e li inserirà nelle rispettive variabili (x1,x2) , successivamente andrà a sommare il valore di queste due variabili ed assegnerà il valore risultante alla variabile x3, per poi andare a stampare su schermo l&#39;operazione effettuata con il risultato.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(Posiziona il cursore sulla linea per visualizzare il codice corrispondente)&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpALCF1Y_IONpYtt4jvNeQx2aA3cVn-eXlv-7OgkwW6iIZ_-eDPBH0940eHsV5ACKqEgggHLL3KeP2w-GpHaTn1p_INXXEmX3zMngrF-6JKKtPe1sdxr6yECyqseXVudUQMOZQd4L4f_o6/s1600/Sommatraduenumeri.png&quot; usemap=&quot;#somma&quot; /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nuove istruzioni:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;#include &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;:&lt;/span&gt; questa istruzione è fondamentale nel C, in quanto ci permette di importare dei file all&#39;interno del nostro programma, e utilizzare le&amp;nbsp; funzioni presenti al suo interno.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;Sintassi:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;map name=&quot;somma&quot;&gt; &lt;area coords=&quot;9,89,170,100&quot; href=&quot;#printf3&quot; shape=&quot;rect&quot; title=&quot;printf(&amp;quot;%d + %d = %d&amp;quot;,x1,x2,x3);&quot;&gt;&lt;/area&gt;
  &lt;area coords=&quot;7,78,170,87&quot; href=&quot;#scanf2&quot; shape=&quot;rect&quot; title=&quot;scanf(&amp;quot;%d&amp;quot;,&amp;amp;x2);&quot;&gt;&lt;/area&gt;
  &lt;area coords=&quot;8,65,174,75&quot; href=&quot;#printf2&quot; shape=&quot;rect&quot; title=&quot;printf(&amp;quot;Inserisci il secondo numero \n&amp;quot;);&quot;&gt;&lt;/area&gt;
  &lt;area coords=&quot;11,54,174,63&quot; href=&quot;#scanf1&quot; shape=&quot;rect&quot; title=&quot;scanf(&amp;quot;%d&amp;quot;,&amp;amp;x1);&quot;&gt;&lt;/area&gt;
  &lt;area coords=&quot;11,39,174,51&quot; href=&quot;#Printf&quot; shape=&quot;rect&quot; title=&quot;printf(&amp;quot;Inserisci il primo numero \n&amp;quot;);&quot;&gt;&lt;/area&gt;
 
&lt;/map&gt;

&lt;/div&gt;
&lt;table class=&quot;code&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;#include&amp;lt;..............&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp; //dove al posto dei punti inseriamo il nome del file.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;//NB: con questa sintassi il processore cerca prima nelle directory specificate dal compilatore, utilizzata principalmente per richiamare &lt;b&gt;&lt;a href=&quot;http://it.wikibooks.org/wiki/C/Appendice/Librerie_standard&quot; target=&quot;_blank&quot;&gt;librerie standard&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;#include &quot;..............&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;//NB: con questa sintassi, invece il processore cerca il file nella directory del codice sorgente del programma , utilizzata in principalmente per &lt;b&gt;includere file sorgenti scritti dal programmatore&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;printf:&lt;/span&gt; &lt;/b&gt;Questa istruzione ci permette di stampare dei caratteri su schermo, ovvero di effettuare l&#39;output di dati.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;Sintassi:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; 

&lt;/div&gt;
&lt;table class=&quot;code&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;printf&lt;/b&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(...) &lt;/span&gt;&amp;nbsp; //dove al posto dei punti inseriamo un messaggio che verrà comunicata all&#39;utente finale.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;printf&lt;/b&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&quot;ciao&quot;);&lt;span style=&quot;color: #0b5394;&quot;&gt; /* i caratteri inseriti all&#39; interno dei doppi apici , e le direttive di conversione vengono chiamati generalmente, stringa di formattazione.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;I &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/v-lezione-dati-di-input-e-output.html#caratteriordinari&quot; title=&quot;A,B,C...1,2,3,...+-*/ ecc&quot;&gt;caratteri ordinari&lt;/a&gt; verranno stampati senza subire variazioni, le &lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/v-lezione-dati-di-input-e-output.html#direttivediconversione&quot; title=&quot;%d,%f,%c,...&quot;&gt;direttive di conversione&lt;/a&gt; specificheranno come dovranno essere trattati gli argomenti che seguono. */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;int a; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;a= 1;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;printf&lt;/b&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&quot;ciao %d&quot;,a); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;/*dove %d rappresenta la direttiva di conversione, ovvero indica al programma che dovrà interpretare l&#39;argomento successivo (la variabile a), come un numero intero, e &quot;a&quot; rappresenta l&#39;argomento da rappresentare.*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span align=&quot;right&quot; style=&quot;color: black;&quot;&gt;&lt;a align=&quot;right&quot; class=&quot;lezione&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDFfWUjUoPXY72WCJ6vB73Q_XOyFOMLGbb-560xlLEWEkN4wgUZ_i9sZwabimhQBy5Izv8Y9sRsFTo5-XlpadHWwfC8R-2AgCAQMcMwx1d7P9Ygffb_rcdz73320qLYNukRFGKgRBq5t6V/s1600/Printf.png&quot; style=&quot;color: white; display: block; margin-left: 210px; margin-right: 218px;&quot; target=&quot;_blank&quot;&gt;  Clicca qui per vedere l&#39;anteprima&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;scanf:&lt;/span&gt; &lt;/b&gt;Questa istruzione ci permette di inserire dati, provenienti da tastiera, all&#39;interno del programma(input).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;Sintassi:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; 

&lt;/div&gt;
&lt;table class=&quot;code&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;scanf&lt;/b&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&quot;&lt;i&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/direttive-di-conversione-c.html&quot; target=&quot;_blank&quot;&gt;direttiva di conversione&lt;/a&gt;&lt;/i&gt;&quot;,&amp;amp;&lt;i&gt;nomevariabile&lt;/i&gt;) &lt;/span&gt;&amp;nbsp; /* inseriremo tra i doppi apici la direttiva di conversione a seconda del tipo di variabile che abbiamo dichiarato, e dopo la &quot;&amp;amp;&quot; commerciale inseriamo il nome della variabile precedentemente dichiarata.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;il programma attenderà l&#39;inserimento di un valore&amp;nbsp; */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;int&lt;/b&gt; a; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;scanf&lt;/b&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&quot;%d&quot;,&amp;amp;a);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span align=&quot;right&quot; style=&quot;color: black;&quot;&gt;&lt;a align=&quot;right&quot; class=&quot;lezione&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi__al3B0Z0DySLwMNVkh6j4FAcgW2T_Xz5iFu6DgmuvXcIEqpen12WPbqXrNWYLExiZQh5-7_q5u6TtOY0B6V_39aDJVBLAwsX2pfEyp8mftvIIP2hUrr2RciwkLbtr4yZlCvsR2QV6z52/s1600/scanf.png&quot; style=&quot;color: white; display: block; margin-left: 210px; margin-right: 218px;&quot; target=&quot;_blank&quot;&gt;  Clicca qui per vedere l&#39;anteprima&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: #0b5394;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; width=&quot;30%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/09/iv-lezione-primi-passi-per-la.html&quot; style=&quot;color: white;&quot;&gt;&lt;b&gt;&amp;lt;&amp;lt; LEZIONE PRECEDENTE &lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot; width=&quot;30%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/direttive-di-conversione-c.html&quot; style=&quot;color: white;&quot; target=&quot;_blank&quot;&gt;&lt;b&gt; DIRETTIVE DI CONVERSIONE &lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;30%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;https://www.blogger.com/blogger.g?blogID=2952833082760444991&quot; style=&quot;display: none; olor: white;&quot;&gt;&lt;b&gt;LEZIONE SUCCESSIVA &amp;gt;&amp;gt; &lt;/b&gt;&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/3816863626555054855/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/v-lezione-dati-di-input-e-output.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3816863626555054855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3816863626555054855'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/10/v-lezione-dati-di-input-e-output.html' title='V lezione - Dati di input e output (scanf,printf)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-3271077127926126667</id><published>2014-09-29T08:00:00.000+02:00</published><updated>2014-10-12T13:14:23.493+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Corso C"/><category scheme="http://www.blogger.com/atom/ns#" term="Dev C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Dichiarazione di una variabile"/><category scheme="http://www.blogger.com/atom/ns#" term="Linguaggio di programmazione C"/><category scheme="http://www.blogger.com/atom/ns#" term="Sintassi C"/><title type='text'>IV Lezione - Primi passi per la programmazione in C</title><content type='html'>&lt;style&gt;
.lezione{
 border:1px solid black;
padding:6px;
background-color: #006600;
color:white;
 
}
.lezione:hover{
 border:1px solid white;
padding:10px;
background-color: #006600;
color:white;
 
}
.lezione:visited{color:white;}

.tabss { font-family: Verdana, sans-serif; font-size: 12px; }
.tabss li {
    list-style: none;
    float: left;
    width: 100px;
    height: 25px;
    margin: 0 6px -30px;
}
 
    .tabss li a {
        background-color: #dedede;
        color: #222;
        font-weight: bold;
        text-decoration: none;
        width: 150px;
        height: 35px;
        display: block;
        float: left;
        line-height: 35px;
        text-align: center;
    }
        .tabss li a:hover,
        .tabss li a:active { background-color: #ededed; }
 
    div.contents {
        color: #222;
        font-family: Verdana;
        font-size: 12px;
        background-color: #efefef;
        padding: 25px;
        width: 600px;
        height: 550px;
        line-height: 13px;
 
    }
 .block{border:1px solid;padding:5px;}
#container { clear: both;
    height: 320px; /* 350px + 25px (padding sx) + 25px (padding dx) */
    overflow: hidden;
 }
 &lt;/style&gt;

&lt;br /&gt;
&lt;div class=&quot;AC&quot; style=&quot;left: -9999px; position: absolute;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s1600/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;Strumenti:&lt;/b&gt;&lt;br /&gt;
- &lt;b&gt;Dev C++&lt;/b&gt;: Software gratuito per la programmazione in C/C++ , scaricabile direttamente da &lt;a href=&quot;http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe&quot; target=&quot;_blank&quot;&gt;qui&lt;/a&gt; , o in alternativa&amp;nbsp; &lt;b&gt;Code::Blocks &lt;/b&gt;scaricabile da &lt;a href=&quot;http://www.codeblocks.org/downloads/26&quot; target=&quot;_blank&quot;&gt;qui&lt;/a&gt; disponibile anche per Linux e Mac.&lt;br /&gt;
Se invece non abbiamo con noi un pc ma abbiamo la necessità di testare un codice, possiamo sfruttare l&#39;editor messo a disposizione su&amp;nbsp; &lt;a href=&quot;http://ideone.com/&quot; target=&quot;_blank&quot;&gt;ideone.com&lt;/a&gt; .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;ul class=&quot;tabss&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/09/iv-lezione-primi-passi-per-la.html#tab1&quot;&gt;Dev C++&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;  
&lt;td&gt;&lt;ul class=&quot;tabss&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/09/iv-lezione-primi-passi-per-la.html#tab2&quot;&gt;Code::Blocks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt; 
 &lt;td&gt;&lt;ul class=&quot;tabss&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/09/iv-lezione-primi-passi-per-la.html#tab3&quot;&gt;Ideone.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt; 
 
 
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div id=&quot;container&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents&quot; style=&quot;border: solid 1px;&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-KfLqr-Qer7z30PPGbTmTIHt6aOHZsn4bh5EqEjfJXeABY2wItGnjPlARf61NygJfTjGoW_REwn6dESTGrLQrYNQcS0OVc2Qi_JNWi-Z45XYiFY9nQK45J8P1Jcpj5CxThliqKUO1OEta/s1600/dev-c.png&quot; height=&quot;60&quot; style=&quot;display: inline;&quot; width=&quot;60&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt;

&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Dev C++&lt;/span&gt; (consigliato)&lt;/span&gt;&lt;/h2&gt;
&lt;a href=&quot;http://staff.icar.cnr.it/folino/appli/upload/dispense/guida.html&quot; target=&quot;_blank&quot;&gt;Guida installazione&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Creazione primo file sorgente:
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Apriamo il programma e clicchiamo su &quot;&lt;b&gt;File&lt;/b&gt;&quot;.
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Portiamo l&#39;indicatore del mouse sopra la scritta &quot;&lt;b&gt;Nuovo&lt;/b&gt;&quot;.
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Nella tendina che si aprirà a destra scegliamo &quot;&lt;b&gt;File sorgente&lt;/b&gt;&quot;.
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In alternativa possiamo crearlo con la combinazione di tasti &lt;b&gt;&quot;CTRL&quot; + &quot;N&quot;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Salvataggio:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&quot;File&quot; &amp;gt; &quot;Salva tutto&quot;&lt;/b&gt; a questo punto se è il primo salvataggio dovremo inserire il nome del file, altrimenti sovrascriverà il precedente salvataggio.&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Compilazione-esecuzione programma: &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&quot;Esegui&quot;&amp;gt; &quot;Compila ed esegui&quot; &lt;/b&gt;(in alternativa basta premere il tasto &quot;F9&quot; sulla tastiera)&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;



&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab2&quot; name=&quot;tab2&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents&quot; style=&quot;border: solid 1px;&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;http://www.codeblocks.org/downloads/26&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://macin.files.wordpress.com/2009/11/codeblocks-8-icon.png&quot; height=&quot;60&quot; style=&quot;display: inline;&quot; width=&quot;60&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt;

&lt;span style=&quot;color: #073763;&quot;&gt;Code::Blocks&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=I7lzfS7O-5A&quot; target=&quot;_blank&quot;&gt;Guida installazione&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Creazione primo file sorgente:
&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Apriamo il programma e clicchiamo su &quot;&lt;b&gt;File&lt;/b&gt;&quot;.
&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Portiamo l&#39;indicatore del mouse sopra la scritta &quot;&lt;b&gt;New&lt;/b&gt;&quot;.
&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Nella tendina che si aprirà a destra scegliamo &quot;&lt;b&gt;Empty file&lt;/b&gt;&quot;.&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In alternativa possiamo crearlo con la combinazione di tasti &lt;b&gt;&quot;CTRL&quot; + &quot;SHIFT&quot; + &quot;N&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Consiglio di salvare subito il file come &quot;C/C++&quot; in che il programma riconosca il tipo di linguaggio che stiamo utilizzando.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Salvataggio:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&quot;File&quot; &amp;gt; &quot;Save all files&quot; &lt;/b&gt;(CTRL+SHIFT +S)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Compilazione-esecuzione programma:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&quot;Build&quot; &amp;gt; &quot;Build and run&quot; &lt;/b&gt;(F9)&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab3&quot; name=&quot;tab3&quot;&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;contents&quot; style=&quot;border: solid 1px;&quot;&gt;
&lt;h2&gt;
&lt;a href=&quot;http://ideone.com/&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://ideone.com/gfx/ideone/logo.png&quot; height=&quot;17&quot; style=&quot;display: inline;&quot; width=&quot;60&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;tab1&quot; name=&quot;tab1&quot;&gt;&lt;/a&gt;

&lt;span style=&quot;color: #073763;&quot;&gt;Ideone.com &lt;/span&gt;&amp;nbsp;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Andiamo su&lt;b&gt; &lt;a href=&quot;http://ideone.com/&quot;&gt;Ideone.com&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Clicchiamo sul pulsante in basso a sinistra e &lt;b&gt;selezioniamo il linguaggio &quot;C&quot;.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Digitato il nostro codice ci basterà cliccare sul pulsante &quot;Run&quot; per eseguire il programma&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;a href=&quot;http://staff.icar.cnr.it/folino/appli/upload/dispense/guida.html&quot; target=&quot;_blank&quot;&gt; &lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Creato il nostro file sorgente,possiamo digitare il nostro codice:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;block&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;main() &lt;span style=&quot;color: #0b5394;&quot;&gt;//funzione principale del programma, il programma inizia con la prima istruzione , e termina con&amp;nbsp; l&#39;ultima istruzione di questa funzione.&lt;/span&gt;&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;/*Dichiarazione&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp; variabili*/&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x1;&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x2;&lt;br /&gt;
&lt;b&gt;int &lt;/b&gt;x3;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;//Assegno un valore alle variabili x1,x2 &lt;/span&gt;&lt;br /&gt;
x1 = 1;&lt;br /&gt;
x2 = 2;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;//Assegno a x3 il volore della somma tra x1 e x2  &lt;/span&gt;&lt;br /&gt;
x3 = x1 + x2;&lt;br /&gt;
&lt;b&gt;return &lt;/b&gt;0;&lt;br /&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;A cosa serve questo programma?&lt;/b&gt;&lt;br /&gt;
Esegue la somma di due numeri prestabiliti senza restituire alcun valore, ma a questo problema ci penseremo più avanti, per il momento ci interessa analizzare il codice.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Primi accorgimenti&lt;/b&gt;:&lt;/span&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Il codice è scritto tutto con caratteri minuscoli, questo perchè il C è un linguaggio &quot;&lt;b&gt;key sensitive&lt;/b&gt;&quot; (sensibile alle maiuscole) , se per esempio al posto di scrivere &quot;int&quot; scrivessimo &quot;Int&quot; il programma restituirebbe un errore.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Ogni istruzione è seguita da &quot;;&quot;&lt;/b&gt; questo perchè il punto e virgola comunica al programma la fine di un istruzione e l&#39;inizio di un altra, per cui attenzione soprattutto se siete alle prime esperienze di programmazione è uno degli errori più frequenti, consiglio di testare i programmi con frequenza durante la scrittura del codice.&lt;/li&gt;
&lt;li&gt;Le &lt;b&gt;variabili&lt;/b&gt; iniziano tutte con una lettera, questo perchè &lt;b&gt;non possono iniziare con un carattere numerico&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Aggiungendo all&#39;inizio della riga &lt;b&gt;due forward slash &quot;//&quot;&lt;/b&gt; possiamo inserire una &lt;b&gt;riga di commento&lt;/b&gt;, aggiungendo invece &lt;b&gt;forward slash + asterisco&lt;/b&gt; &lt;b&gt;&quot;/*&quot; &lt;/b&gt;all&#39;inizio del commento e &lt;b&gt;asterisco + forward slash&lt;/b&gt; &lt;b&gt;&quot;*/&quot;&lt;/b&gt; alla fine del commento&amp;nbsp; abbiamo la possibilità di inserire un &lt;b&gt;commento multilinea&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;Sintassi&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;Struttura principale di un programma:&lt;/b&gt; 
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;block&quot;&gt;
&lt;b&gt;int&lt;/b&gt; main() &lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;//la funzione main è sempre di tipo &quot;int&quot;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;//elenco istruzioni&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;return 0;&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;/*se aggiungiamo il parametro &quot;void&quot;, la funzione main non necessita di questa istruzione.*/&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Dichiarazione di una variabile: 
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;block&quot; style=&quot;display: inline;&quot;&gt;
&lt;b&gt;tipo&lt;/b&gt; nome;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Nella prossima lezione:&lt;/h4&gt;&lt;br /&gt;
 
 &lt;b&gt;Come rendere &quot;utile&quot; il nostro programma, in modo che permetta all&#39;utente finale di inserire dei dati (input) e leggere dei risultati(output). &lt;/b&gt;
 
&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;50%&quot;&gt;&lt;a class=&quot;lezione&quot; href=&quot;http://appunti-informatica-lampo.blogspot.it/2014/10/v-lezione-dati-di-input-e-output.html&quot;&gt;&lt;b&gt;LEZIONE SUCCESSIVA &amp;gt;&amp;gt; &lt;/b&gt;&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/3271077127926126667/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/iv-lezione-primi-passi-per-la.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3271077127926126667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/3271077127926126667'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/iv-lezione-primi-passi-per-la.html' title='IV Lezione - Primi passi per la programmazione in C'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9cSDXp6dF-I5d-JVcV6t5M4EEcdRH7IHcP5CCvp25qybIFKAnT1p-ujFumACF6QzL432f7CkBrqmjgXPaRX1q5ZVmSsYbReEyaeq8ZJBy0s55XiG2tf-hbl_3jxQrDFOu2vUDbJaW38j-/s72-c/34bb6e94-5f9e-49fe-8f58-685d9e37e4c6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-8257834353350197789</id><published>2014-09-19T11:25:00.002+02:00</published><updated>2014-10-31T13:46:25.388+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Architettura di un calcolatore"/><category scheme="http://www.blogger.com/atom/ns#" term="Von Neuman"/><title type='text'>II - III  Lezione - L&#39;architettura di un calcolatore (ripasso)</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;
&lt;map id=&quot;pippo&quot; name=&quot;pippo&quot;&gt;
&lt;area alt=&quot;CPU&quot; coords=&quot;0,0,40,24&quot; href=&quot;&quot; shape=&quot;rect&quot; target=&quot;_blank&quot; title=&quot;CPU&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;CPU&quot; coords=&quot;60,0,175,24&quot; href=&quot;&quot; shape=&quot;rect&quot; target=&quot;_blank&quot; title=&quot;RAM + ROM&quot;&gt;&lt;/area&gt;
&lt;area alt=&quot;CPU&quot; coords=&quot;195,0,320,24&quot; href=&quot;&quot; shape=&quot;rect&quot; target=&quot;_blank&quot; title=&quot;Memoria che permette la conservazione di dati e programmi anche in assenza di corrente. In questo tipo di memoria è possibile effettuare operazioni di scrittura e lettura&quot;&gt;&lt;/area&gt;
&lt;/map&gt; 

 


&lt;/div&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbx_0womN6J5Jggx1xYgyUB4TavPqOGqOZxn1S1NoPq5HobSfzQMujFO5-sdMXhmxA41dyzZ0d8PNpkwrqxAXSKbaKyZfHallxB3ZTu_-jKJtxU8eNHRyM03DdNtHReyduaR0Y0WA2sbq_/s1600/Van+neuman.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbx_0womN6J5Jggx1xYgyUB4TavPqOGqOZxn1S1NoPq5HobSfzQMujFO5-sdMXhmxA41dyzZ0d8PNpkwrqxAXSKbaKyZfHallxB3ZTu_-jKJtxU8eNHRyM03DdNtHReyduaR0Y0WA2sbq_/s1600/Van+neuman.PNG&quot; height=&quot;191&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;h2&gt;
II - III Lezione.&lt;/h2&gt;
&lt;h4&gt;
L&#39;architettura di un calcolatore &lt;/h4&gt;
(Il modello di Von Neuman) &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;h3&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h3&gt;
1.1 La memoria centrale&amp;nbsp;&lt;/h3&gt;
&lt;h3&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h3&gt;
La memoria centrale:&lt;/h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;La memoria centrale è costituita da:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;- La memoria &lt;b&gt;ROM&lt;/b&gt;(Ready Only 
Memory): Memoria di &lt;b&gt;sola lettura&lt;/b&gt;, come da termine, questo tipo di 
memoria non permette la scrittura di dati e programmi al suo interno, 
vengono programmate dalle case costruttrici tramite degli appositi 
strumenti. Al loro interno contengono un programma (BIOS) che permette 
l&#39;accensione e l&#39;avvio del sistema (la cosi detta fase di &lt;b&gt;bootstrap&lt;/b&gt;) e la gestione di dei dispositivi I/O.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;-La memoria &lt;b&gt;RAM&lt;/b&gt; (Ramdom Access Memory): Memoria ad accesso casuale, viene definita anche come&lt;b&gt; memoria volatile &lt;/b&gt;perchè non è possibile conservare&amp;nbsp; dati o programmi al suo interno in assenza di corrente, ne permette però la&lt;b&gt; lettura e la scrittura&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Riassumendo:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Queste due memorie sono fondamentali per il calcolatore in quanto la memoria ROM permette l&#39;accensione , l&#39;avvio del computer e la gestione di base dei dispositivi I/O , la RAM&amp;nbsp; permette alla CPU di eseguire i programmi.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;__________________________________________________________________________&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
1.2 Il modello di Von Neuman&lt;/h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Il percorso di un dato/programma all&#39;interno di un elaboratore possiamo vederlo schematicamente così:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi9NXXxgtFil1-5cjVRE4akrHdvLS28D2OdRPoeLRzJkinaydnkVO5q69V1s-yI_uIRC8Pf44Gp9XPqMHvU3mdonW80dOXXza9sOU_dxJi9wbNweemlzrUP9uQUG_7skyU42M96pbUev32/s1600/CPU-MC-HD.PNG&quot; height=&quot;27&quot; usemap=&quot;#pippo&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
Guardando questo percorso possiamo capire l&#39;importanza della memoria centrale,se noi togliessimo in questo schema la memoria centrale , la comunicazione tra le memorie di massa/dispositivi e la CPU non sarebbe possibile.&lt;br /&gt;
Questo però è solo uno schema, nella realtà se il circuito fosse impostato in quel modo, lo schema di un calcolatore sarebbe molto più complesso, e poco efficiente...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFHUjDlwStivLOKT5_S2jadfqFOIdL69EEJJdDib46W4V5wEABHeWhi21m5H882TcpaoLadf1Vn-pJVioAJ5s_oGvJ3vSDJ0dvPkSRnAaHQJiKTvTJbO-gkcoMsZsrOiVsIymd3Pc8a78S/s1600/schema.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFHUjDlwStivLOKT5_S2jadfqFOIdL69EEJJdDib46W4V5wEABHeWhi21m5H882TcpaoLadf1Vn-pJVioAJ5s_oGvJ3vSDJ0dvPkSRnAaHQJiKTvTJbO-gkcoMsZsrOiVsIymd3Pc8a78S/s1600/schema.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prima del modello di Von Neuman i circuiti di un computer erano impostati come nella figura, perchè tutte le componenti di un calcolatore devono essere in grado di interagire tra di loro, ma in questo modo se si rompeva una componente qualsiasi all&#39;interno del sistema, rischiava di recare danni anche alle altre componenti , e il computer non funzionava.&lt;br /&gt;
Von Neuman, inventò un modello semplice , efficiente e geniale allo stesso tempo, che tutt&#39;ora è utilizzato su i calcolatori di ultima generazione.&lt;br /&gt;
Per capire il funzionamento di questo modello basta pensare ad un impianto idrico:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-YzkHjhSOIshyphenhyphenq_BSOte5pFDG3fHPU4SD64UrlIauUajLFmhTzRGKQiD2TLY64s8K9YSJeqCMG9cnTTpU1t_KJzIMCk50zb6P_liM4mTlzL9SNP-VcgVF5eBOEwf9H8Rwr5PjYD615olj/s1600/Filosofia+Von+Neuman.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-YzkHjhSOIshyphenhyphenq_BSOte5pFDG3fHPU4SD64UrlIauUajLFmhTzRGKQiD2TLY64s8K9YSJeqCMG9cnTTpU1t_KJzIMCk50zb6P_liM4mTlzL9SNP-VcgVF5eBOEwf9H8Rwr5PjYD615olj/s1600/Filosofia+Von+Neuman.PNG&quot; height=&quot;81&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Un acquedotto principale che porta con degli &quot;allacciamenti&quot; l&#39;acqua in tutte le case, se ci sono dei problemi con l&#39;impianto di una casa, le altre case allacciate a quell acquedotto non se ne accorgono. &lt;br /&gt;
Questa è la filosofia del modello di Von Neuman, un bus principale al quale si allacciano tutti gli altri dispositivi del sistema.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUEjBml7WwSjXv-kmqHCqpTSb71g3Q0JQak7su_jlHs7wTVdv6SC6xFH5ezMhqLd7wseTkIecRvToNLeFumKGzx_cFf4IM9AeB4ZYDdP9PpMuN05aZUI3Hg7Qus5OrmG3-wAipUepI_nD9/s1600/Van+neuman.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUEjBml7WwSjXv-kmqHCqpTSb71g3Q0JQak7su_jlHs7wTVdv6SC6xFH5ezMhqLd7wseTkIecRvToNLeFumKGzx_cFf4IM9AeB4ZYDdP9PpMuN05aZUI3Hg7Qus5OrmG3-wAipUepI_nD9/s1600/Van+neuman.PNG&quot; height=&quot;216&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;AC&quot; style=&quot;left: -9999; position: absolute;&quot;&gt;
&lt;h1&gt;
L&#39;architettura di un calcolatore - Von Neuman&lt;/h1&gt;
&lt;b&gt;L&#39;architettura di un calcolatore - Von Neuman&lt;/b&gt;L&#39;architettura di un calcolatore - Von Neuman,informatica,modello von Neuman, com&#39;è fatto un computer &lt;a href=&quot;http://appuntiinformaticalampo.altervista.org&quot;&gt; appuntiinformaticalampo&lt;/a&gt; &lt;/div&gt;

&lt;div style=&quot;display:none&quot;&gt;architettura di un calcolatore il modello di von neumann
architettura del calcolatore
architettura e componenti di un computer
architettura generale di un computer
cpu architettura
architettura del computer
architettura di un computer
struttura di un elaboratore
&lt;b&gt;architettura di un calcolatore il modello di von neumann
architettura del calcolatore
architettura e componenti di un computer
architettura generale di un computer
cpu architettura
architettura del computer
architettura di un computer
struttura di un elaboratore&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/8257834353350197789/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/ii-iii-lezione-larchitettura-di-un.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8257834353350197789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/8257834353350197789'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/ii-iii-lezione-larchitettura-di-un.html' title='II - III  Lezione - L&#39;architettura di un calcolatore (ripasso)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbx_0womN6J5Jggx1xYgyUB4TavPqOGqOZxn1S1NoPq5HobSfzQMujFO5-sdMXhmxA41dyzZ0d8PNpkwrqxAXSKbaKyZfHallxB3ZTu_-jKJtxU8eNHRyM03DdNtHReyduaR0Y0WA2sbq_/s72-c/Van+neuman.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2952833082760444991.post-1656172360963137085</id><published>2014-09-18T10:40:00.000+02:00</published><updated>2014-09-19T09:21:37.057+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Strumenti di lavoro"/><title type='text'>I lezione - Strumenti di lavoro</title><content type='html'>&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJj61mSCsdIoJ-lpABwcvV9umzH5Rm0V07WwBXEGmsQyf8Nu432vHgvmFNKqySfzoE8SLe0RqL51rvo_2QmKIzz7yuqs64X_ygw64NmLl9dPepYQQr9bcbU_dgVDV3-TKPlXiYDLpsgTun/s1600/strumenti+freelance.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJj61mSCsdIoJ-lpABwcvV9umzH5Rm0V07WwBXEGmsQyf8Nu432vHgvmFNKqySfzoE8SLe0RqL51rvo_2QmKIzz7yuqs64X_ygw64NmLl9dPepYQQr9bcbU_dgVDV3-TKPlXiYDLpsgTun/s1600/strumenti+freelance.jpg&quot; height=&quot;133&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;h2&gt;
I Lezione.&lt;/h2&gt;
&lt;h4&gt;
Strumenti di lavoro: &lt;/h4&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Indirizzo di posta &lt;a href=&quot;https://mail.google.com/mail/&quot; target=&quot;_blank&quot;&gt;Gmail&lt;/a&gt;&lt;/b&gt;: Offre diversi vantaggi, tra i quali troviamo la possibilità di aprire un canale &lt;b&gt;&lt;a href=&quot;https://www.youtube.com/&quot; target=&quot;_blank&quot;&gt;youtube&lt;/a&gt;&lt;/b&gt; in pochi e semplici passi senza effettuare una seconda registrazione; caricare file su &lt;b&gt;&lt;a href=&quot;https://drive.google.com/&quot; target=&quot;_blank&quot;&gt;drive&lt;/a&gt;&lt;/b&gt; ,sicronizzarli con tutti i nostri dispositivi, e condividerli con altri utenti ; La possibilità di creare un proprio blog attraverso &lt;b&gt;&lt;a href=&quot;https://www.blogger.com/&quot; target=&quot;_blank&quot;&gt;Blogger&lt;/a&gt;&lt;/b&gt; senza dover effettuare una seconda registrazione.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Un blog su Blogger: &lt;/b&gt;come detto in precedenza con un account gmail non abbiamo la necessità di effettuare una seconda registrazione , ci bastera andare sul sito di &lt;a href=&quot;https://www.blogger.com/&quot; target=&quot;_blank&quot;&gt;blogger&lt;/a&gt; , e con pochi e semplici passaggi avremo creato il nostro blog pronto per la publicazione degli articoli.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Youtube:&amp;nbsp;&lt;/b&gt; Oggi se pensiamo a youtube la prima cosa a cui lo associamo è la riproduzione di video musicali, in realtà youtube è diventato un vero e proprio strumento per chi vuole imparare,possiamo trovare tutorial di tutti i tipi (meccanica, cucina, body building), nel nostro caso, di informatica. Youtube non solo ci da la possibilità di&lt;b&gt; rispondere alle nostre domande&lt;/b&gt; (come si fa questa cosa?come funzione questa cosa?) ma ci da anche la possibilità di condividere delle informazioni che abbiamo, quindi di &lt;b&gt;mettere a disposizione di altre persone le nostre conoscienze &lt;/b&gt;, e di dare una risposta alle domande di altre persone.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Software di acquisizione video&lt;/b&gt;: Questi software sono lo strumento principale per la creazione di video tutorial, ci permettono di &lt;b&gt;registrare ciò che vediamo nello schermo&lt;/b&gt;, di &lt;b&gt;acquisire l&#39;audio&lt;/b&gt; ,che può essere, quello riprodotto dal computer o quello proveniente dall&#39;esterno(la nostra voce)attraverso l&#39;uso di un microfono, e se abbiamo la necessità di mostrare qualcosa di esterno, possiamo sfruttare anche il video proveniente della&amp;nbsp; &lt;b&gt;webcam&lt;/b&gt; del nostro computer.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Tra questi software troviamo: &lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://camstudio.org/&quot; target=&quot;_blank&quot;&gt;Camstudio&lt;/a&gt;:&lt;/b&gt; Un software open source che possiamo scaricare liberamente da &lt;a href=&quot;http://icdn.camstudiofiles.org/CamStudioSetup_v2.7.2.exe&quot; target=&quot;_blank&quot;&gt;qui&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b itemprop=&quot;name&quot;&gt;&lt;a href=&quot;http://www.koyotesoft.com/video-software/free-screen-to-video.html&quot; target=&quot;_blank&quot;&gt;Free Screen To Video&lt;/a&gt;: &lt;/b&gt;Molto simile al precedente&amp;nbsp; ed è scaricabile gratuitamente da &lt;a href=&quot;http://download.koyotesoft.com/FreeScreenToVideoSetup.exe&quot; target=&quot;_blank&quot;&gt;qui&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://www.screen-record.com/screen2exe.htm&quot; target=&quot;_blank&quot;&gt;Screen2exe&lt;/a&gt;:&lt;/b&gt; Offre le stesse funzionalità dei primi due con qualche funzione di editing, scaricabile liberamente da &lt;a href=&quot;http://www.screen-record.com/dl/SCREXESetup.exe&quot; target=&quot;_blank&quot;&gt;qui.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.slideshare.net/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Slideshare:&lt;/b&gt;&lt;/a&gt; Slideshare è un software web che ci consente consultare e condividere delle presentazioni (pdf) online classificandole per tag , incorporarle in pagine web,e consultarle anche da qualsiasi smartphone o tablet. &amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Perchè utilizzare questi strumenti per imparare?&lt;/b&gt;&lt;br /&gt;
La risposta è molto semplice , viviamo in un mondo dove ogni tipo di informazione è digitalizzata, per cui è bene avere una certa confidenza con il mondo digitale, qualsiasi sia la nostra attività o prospettiva di vita&lt;b&gt;.&lt;/b&gt;&lt;br /&gt;
Ricercando online le guide non impariamo solo a fare la singola cosa che ci spiega il tutorial, ma la ricerca in sè è un insegnamento, un domani qualsiasi domanda ci porremo o qualsiasi cosa avremo intenzione di imparare sapremo dove andare a cercarla ,sapremo riconoscere una guida valida da una di poca qualità, in poco tempo riusciremo a trovare la soluzione ai nostri &quot;problemi&quot;.&lt;br /&gt;
&lt;br /&gt;
Creare tutorial è molto utile per migliorare la capacità di espressione e riordinare le nostre conoscienze , saper contrarre in poche parole ma ordinate il messaggio (la conoscienza) in modo da renderlo più semplice e comprensibile per gli altri .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;AC&quot; style=&quot; position:absolute;left:-9999px&quot;&gt;
&lt;h1&gt;
I lezione - Strumenti di lavoro&lt;/h1&gt;
&lt;b&gt;I lezione - Strumenti di lavoro&lt;/b&gt; camstudio,gmail,youtube,drive,free screen to video, screen2exe,acquisizione video,slideshare,condivisione file,lavoro online, blogger,&lt;br /&gt;
&lt;a href=&quot;http://appuntiinformaticalampo.altervista.org&quot;&gt;Disponibile anche qui &lt;/a&gt;&lt;h1&gt;
I lezione - Strumenti di lavoro&lt;/h1&gt;
&lt;b&gt;I lezione - Strumenti di lavoro&lt;/b&gt; camstudio,gmail,youtube,drive,free screen to video, screen2exe,acquisizione video,slideshare,condivisione file,lavoro online, blogger,&lt;br /&gt;
&lt;h1&gt;
I lezione - Strumenti di lavoro&lt;/h1&gt;
&lt;b&gt;I lezione - Strumenti di lavoro&lt;/b&gt; camstudio,gmail,youtube,drive,free screen to video, screen2exe,acquisizione video,slideshare,condivisione file,lavoro online, blogger&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Fonte: http://appunti-informatica-lampo.blogspot.it/
Alternativa: http://appuntiinformaticalampo.altervista.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appunti-informatica-lampo.blogspot.com/feeds/1656172360963137085/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/i-lezione.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/1656172360963137085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2952833082760444991/posts/default/1656172360963137085'/><link rel='alternate' type='text/html' href='http://appunti-informatica-lampo.blogspot.com/2014/09/i-lezione.html' title='I lezione - Strumenti di lavoro'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07301536522268953904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJj61mSCsdIoJ-lpABwcvV9umzH5Rm0V07WwBXEGmsQyf8Nu432vHgvmFNKqySfzoE8SLe0RqL51rvo_2QmKIzz7yuqs64X_ygw64NmLl9dPepYQQr9bcbU_dgVDV3-TKPlXiYDLpsgTun/s72-c/strumenti+freelance.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>