typedef int BOOL;
-128的补码为1000 0000;负数的补码取反加1;
typedef unsigned char Byte;//扩展一个数据类型
int不能转换成boolean
typedef struct
{
int age;
double weight;
}
student;//定义一个名为student的结构体;student可以直接用
class student//class可以换成struct
{
int age;
double weight;
void hanshu(){printf(""shuchu)}
}
int main()
{
student stu;//定义一个student结构的变量stu
stu.pp();//引用函数
}//c语言里定义结构体
student stu2;
stu2=new student();//申请一个地址//java里需要