Skillnad mellan versioner av "Kap 3 Fortsättning med C Cpp (forts.)"
Från Mathonline
Taifun (Diskussion | bidrag) m |
Taifun (Diskussion | bidrag) m |
||
Rad 1: | Rad 1: | ||
− | + | __TOC__ | |
{| border="0" cellspacing="0" cellpadding="0" height="30" width="100%" | {| border="0" cellspacing="0" cellpadding="0" height="30" width="100%" | ||
| style="border-bottom:1px solid #797979" width="5px" | | | style="border-bottom:1px solid #797979" width="5px" | | ||
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> | ||
Rad 68: | Rad 68: | ||
<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> |
Versionen från 7 januari 2024 kl. 00.04
Innehåll
<< 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 \)
Automatisk typkonvertering från int till bool
Gå vidare till: när du är klar med denna genomgång.
Copyright © 2024 TechPages AB. All Rights Reserved.