Visual C++: Afficher les valeurs numériques litérales

Author:


{filelink=13221}

/*

#using 
using namespace System;

namespace MesExemples 
{
Int32 main(void)
{

    
    Console::WriteLine ( (123456789).ToString()  );
    Console::WriteLine ( (0xABCDEF).ToString("X") );
    Console::WriteLine (   010 );  // Valeur octale 
    Console::WriteLine (  -010 ); // Valeur octale négative
    Console::WriteLine (  0x10 );  // Hexadécimal
    Console::WriteLine ( -0x10 ); // Hexadécimal Négatif



    return 0;
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *