cppoctdechex

Postado em 12 fevereiro, 2009 em Cpp por admin

Octal / Hexadecimal / Decimal conversão

# include <iostream.h>
# include <iomanip.h> int main ()
(
cout << "O valor decimal de 15 é" <<15 <<endl;
cout << "O valor octal de 15 é" <<setiosflags (ios:: out) <<15 <<endl;
cout << "O hex valor de 15 é" <<setiosflags (ios:: hex) <<15 <<endl;

return 0;

)

Related posts:

  1. Escreve para um arquivo texto Este exemplo utiliza fluxos de escrever um texto para o arquivo ...

Lugares ligados trazido a você por Yet Another Related Posts Plugin.

Postar um comentário