Beruflich Dokumente
Kultur Dokumente
long double
double
Float
unsigned long int (sinônimo de unsigned long)
long int (sinônimo de long)
unsigned int (sinônimo de unsigned)
int
unsigned short int (sinônimo de unsigned short)
short int (sinônimo de short)
unsigned char
char
bool (false tornas-se 0, true torna-se 1)
x=2 cRef
15 Gilson G. de Lima - gilsongl@gmail.com 11/04/2009
08- Argumentos default
int square( int x ) { return x * x; } // definição da função antes do main. não precisa de proto'tipo
int main()
{
cout << "The square of integer 7 is " << square( 7 )
<< "\nThe square of double 7.5 is " << square( 7.5 )
<< endl;
system("PAUSE");
return 0;
}