Skillnad mellan versioner av "Kap 3 Fortsättning med C Cpp (forts.)"
Från Mathonline
Taifun (Diskussion | bidrag) m |
Taifun (Diskussion | bidrag) m |
||
(3 mellanliggande versioner av samma användare visas inte) | |||
Rad 39: | Rad 39: | ||
<div class="ovnE"> | <div class="ovnE"> | ||
<big><big> | <big><big> | ||
− | :Kör programmet <math> \;\; </math><div class="smallBox">[http://mathonline.se | + | :Kör programmet <math> \;\; </math><div class="smallBox">[http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">Overflow</span></b>], sid 46</div><math> \;\; </math>. |
</big></big> | </big></big> | ||
</div> | </div> | ||
Rad 59: | Rad 59: | ||
:Bläddra igenom kursboken<span>:</span> | :Bläddra igenom kursboken<span>:</span> | ||
<math> \qquad\;\;\, </math><div class="smallBox">[http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">3. Befordringsregeln</span></b>], sid 48</div><math> \qquad\;\;\, </math> | <math> \qquad\;\;\, </math><div class="smallBox">[http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">3. Befordringsregeln</span></b>], sid 48</div><math> \qquad\;\;\, </math> | ||
− | :Kör programmen [http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue"> | + | :Kör programmen [http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">PromotInt</span></b>], sid 49 |
:och <math> \qquad\qquad\quad</math>[http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">PromotDec</span></b>], sid 50.<math> \quad </math> | :och <math> \qquad\qquad\quad</math>[http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">PromotDec</span></b>], sid 50.<math> \quad </math> | ||
</big></big> | </big></big> | ||
</div> | </div> | ||
− | + | <!-- | |
= <b><span style="color:#931136">Automatisk typkonvertering från int till bool</span></b> = | = <b><span style="color:#931136">Automatisk typkonvertering från int till bool</span></b> = | ||
<div class="ovnE"> | <div class="ovnE"> | ||
<big><big> | <big><big> | ||
− | :Bläddra igenom | + | :Bläddra igenom [http://mathonline.se/Boken_Systemutv_Inb_Syst.pdf <b><span style="color:blue">kursboken</span></b>], sid 51.<math> \quad </math> |
</big></big> | </big></big> | ||
</div> | </div> | ||
− | + | --> | |
<br><br> | <br><br> | ||
Nuvarande version från 8 januari 2024 kl. 13.51
<< Agenda | Genomgång 4 | Övningar 4 | Innehåll & struktur | Nästa lektion >> |
3.5 Automatisk typkonvertering
Automatisk typkonvertering vid tilldelning
Programmet AssignRule
Programmet Overflow
Automatisk typkonvertering vid aritmetiska operationer
- Bläddra igenom kursboken:
2. int-regeln, sid 47
\( \qquad\;\;\, \)
- Kör programmet IntRule, sid 47.\( \quad \)
Befordringsregeln
- Bläddra igenom kursboken:
3. Befordringsregeln, sid 48
\( \qquad\;\;\, \)
- Kör programmen PromotInt, sid 49
- och \( \qquad\qquad\quad\)PromotDec, sid 50.\( \quad \)
Gå vidare till: när du är klar med denna genomgång.
Copyright © 2024 TechPages AB. All Rights Reserved.