Skillnad mellan versioner av "Kap 3 Fortsättning med C Cpp (forts.)"

Från Mathonline
Hoppa till: navigering, sök
m
m
Rad 1: Rad 1:
__NOTOC__
+
__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">­ PromotInt</span></b>], sid 49
+
: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 kursboken, sid 51.<math> \quad </math>
+
: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

        <<  Agenda          Genomgång 4          Övningar 4          Innehåll & struktur          Nästa lektion  >>      


3.5    Automatisk typkonvertering

Autom typkonvertering.jpg


Automatisk typkonvertering vid tilldelning

Tilldelningsregeln.jpg


Programmet AssignRule

AssignRule.jpg


AssignRuleKodforklaring.jpg


AssignRuleKodforklaring 2.jpg


Programmet Overflow

Kör programmet \( \;\; \)
­Overflow, sid 46
\( \;\; \).


­Automatisk typkonvertering vid aritmetiska operationer

Bläddra igenom kursboken:
\( \qquad\;\;\, \)\( \qquad\;\;\, \)
Kör programmet ­IntRule, sid 47.\( \quad \)


Befordringsregeln

Bläddra igenom kursboken:
\( \qquad\;\;\, \)\( \qquad\;\;\, \)
Kör programmen ­PromotInt, sid 49
och \( \qquad\qquad\quad\)PromotDec, sid 50.\( \quad \)


Automatisk typkonvertering från int till bool

Bläddra igenom ­kursboken, sid 51.\( \quad \)



Gå vidare till:        när du är klar med denna genomgång.










Copyright © 2024 TechPages AB. All Rights Reserved.