terralib:convencaoprograma
                Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anterior | |||
| terralib:convencaoprograma [2008/04/02 19:08] – laercio | terralib:convencaoprograma [2008/04/02 19:22] (atual) – laercio | ||
|---|---|---|---|
| Linha 130: | Linha 130: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| Linha 136: | Linha 137: | ||
| * Use C++ casting operators instead of C-style casts. Ex:<code cpp> | * Use C++ casting operators instead of C-style casts. Ex:<code cpp> | ||
| - | short a=2000; | + | short a = 2000; | 
| int b; | int b; | ||
| b = (int) a; // c-like cast notation - Ok only for fundamental data types | b = (int) a; // c-like cast notation - Ok only for fundamental data types | ||
| - | double d=3.14159265; | + | double d = 3.14159265; | 
| int i = static_cast< | int i = static_cast< | ||
| </ | </ | ||
terralib/convencaoprograma.1207163325.txt.gz · Última modificação: 2008/04/02 19:08 por laercio
                
                