int main(int argc, char* argv[])
{
unsigned int x = 10;
int xx = -1;
if (x > xx) cout<<"greater than"<<endl;
else cout<<"less than"<<endl;
unsigned char x1 = 10;
char xx1 = -1;
if (x1 > xx1) cout<<"greater than"<<endl;
else cout<<"less than"<<endl;
return 0;
}
/*
display:
less than
greater than
*/
unsigned char, unsigned int
最新推荐文章于 2024-01-26 11:54:00 发布