#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a,b;
char c1;
printf( "Please input two Int. " );
scanf( "%d %d", &a, &b ); // 100 200[enter]
printf( "Please input one Char. " );
scanf( "%c", &c1 );
printf( "c1=%c, a=%d ,b=%X, ,b=%o\r\n", c1, a ,b, b );//%o為八進位
printf( "\101 = A \x41 = A 0101=%c 0x41=%c\r\n", 0101, 0x41 );
system( "PAUSE" );
return 0;
}
沒有留言:
張貼留言