#include <stdio.h>
#include <stdbool.h> //为了识别bool
//#include <typeinfo> //使用type函数获取变量类型
int main(void)
{
//POJ 1.2 01
/*
int a,c,d;
short b;
c=sizeof(a);
d=sizeof(b);
printf("%d %d", c, d);
*/
//POJ 1.2 02
/*
float a;
double b;
int c, d;
c = sizeof(a);
d = sizeof(b);
printf("%d %d", c, d);
*/
//POJ 1.2 03
/*
bool a;
char b;
int c, d;
c = sizeof(a);
d = sizeof(b);
printf("%d %d", c, d);
*/
//POJ 1.2 04
/*
printf("D C\n");
*/
//POJ 1.2 05
/*
printf("F E\n");
*/
//POJ 1.2 06
/*向0取整的结果
float a;
int b;
scanf_s("%f", &a);
b = (int)a;
printf("%d", b);
*/
/*如果使用下面这种转换方法,结果是四舍五入的结果,不是向0取整的结果
float a;
scanf_s("%f", &a);
printf("%.0f", a);
*/
//POJ 1.2 07
/*
char c;
scanf_s("%c", &c);
printf("%d",c);
*/
//POJ 1.2 08
/*
int c;
scanf_s("%d", &c);
printf("%c", c);
*/
//POJ 1.2 09
/*
int c;
bool b;
scanf_s("%d", &c);
b = c;
printf("%d", b);
*/
//POJ 1.2 10
/*
int a;
a = sizeof("Hello, World!");
printf("%d", a);
*/
return 0;
}