无符号整形(unsigned) 和 有符号整形(int) 的比较会默认强制转换为 无符号类型(unsigned)
- 先来看示例代码,这里以 int a = -1 和 unsigned int b = 77 来做大小比较:
#include <iostream>
using namespace std;
int main()
{
int a = -1;
unsigned int b = 77;
if (a > b) //a > b = true
cout << "a > b" << endl;
else
cout << "a < b" << endl;
cout << " a = " << a << endl;
cout << " b = " << b << endl;
}
- 运行结果
- 如下图,a = -1,b = 77,但比较结果却是a > b, 即-1 > 77
- 原因正是两者类型不同导致的,这如果在实际项目中遇到了,在debug的时候真的感觉是见鬼了。
buy prednisone canada mail order prednisone buying prednisone from canada
http://cytotecbestprice.pro/# Cytotec 200mcg price
http://prednisonebestprice.pro/# prednisone 2 mg daily
https://cytotecbestprice.pro/# buy cytotec pills online cheap
zithromax antibiotic without prescription: generic zithromax india – zithromax 250 price
where can i buy zithromax in canada zithromax antibiotic without prescription zithromax over the counter uk
http://cytotecbestprice.pro/# buy cytotec online fast delivery
25 mg prednisone: buy prednisone tablets uk – prednisone 20 mg tablet price
zithromax 500 mg zithromax online paypal can i buy zithromax over the counter
https://prednisonebestprice.pro/# prednisone 4 mg daily
http://cytotecbestprice.pro/# order cytotec online
tamoxifen 20 mg: tamoxifen and osteoporosis – cost of tamoxifen
zithromax 250 mg tablet price generic zithromax india zithromax 250
https://propeciabestprice.pro/# buy propecia without prescription
http://zithromaxbestprice.pro/# zithromax 500 tablet
propecia for sale: propecia order – how cЙ‘n i get cheap propecia pills
cost of cheap propecia without dr prescription cost of propecia buy generic propecia
mexico drug stores pharmacies: mexico drug stores pharmacies – medication from mexico pharmacy
mexican pharmacy mexican border pharmacies shipping to usa mexican pharmaceuticals online
buying prescription drugs in mexico: mexican online pharmacies prescription drugs – mexican online pharmacies prescription drugs
best online pharmacies in mexico: mexican border pharmacies shipping to usa – buying prescription drugs in mexico online
mexican border pharmacies shipping to usa: best online pharmacies in mexico – mexican rx online
reputable mexican pharmacies online: mexican pharmaceuticals online – mexican rx online
buying prescription drugs in mexico online mexican pharmaceuticals online best online pharmacies in mexico
mexico drug stores pharmacies: mexican drugstore online – buying prescription drugs in mexico online
buying from online mexican pharmacy mexico pharmacies prescription drugs reputable mexican pharmacies online
medicine in mexico pharmacies: medication from mexico pharmacy – medication from mexico pharmacy
mexican rx online: mexican drugstore online – mexican pharmaceuticals online
buying prescription drugs in mexico: buying from online mexican pharmacy – purple pharmacy mexico price list
purple pharmacy mexico price list: mexican drugstore online – buying prescription drugs in mexico online
mexican pharmaceuticals online mexican border pharmacies shipping to usa mexican pharmacy
reputable mexican pharmacies online: mexico drug stores pharmacies – п»їbest mexican online pharmacies
buying from online mexican pharmacy mexican pharmacy mexican pharmaceuticals online
purple pharmacy mexico price list: п»їbest mexican online pharmacies – mexican rx online
mexican drugstore online: mexican drugstore online – medication from mexico pharmacy
mexico drug stores pharmacies: mexico drug stores pharmacies – mexico drug stores pharmacies
mexico drug stores pharmacies: п»їbest mexican online pharmacies – medicine in mexico pharmacies
mexico pharmacies prescription drugs: buying prescription drugs in mexico online – mexico pharmacies prescription drugs
mexican online pharmacies prescription drugs п»їbest mexican online pharmacies medicine in mexico pharmacies
buying prescription drugs in mexico online: mexican drugstore online – mexico drug stores pharmacies
mexican pharmacy buying from online mexican pharmacy buying prescription drugs in mexico
mexican mail order pharmacies: mexican border pharmacies shipping to usa – buying prescription drugs in mexico
mexico drug stores pharmacies: mexican drugstore online – mexican border pharmacies shipping to usa
mexican drugstore online: mexican border pharmacies shipping to usa – buying from online mexican pharmacy
mexican mail order pharmacies: mexican border pharmacies shipping to usa – purple pharmacy mexico price list
mexico drug stores pharmacies best online pharmacies in mexico buying from online mexican pharmacy
pharmacies in mexico that ship to usa mexico pharmacy buying from online mexican pharmacy
mexican online pharmacies prescription drugs: mexican online pharmacies prescription drugs – mexican online pharmacies prescription drugs
medicine in mexico pharmacies: mexican mail order pharmacies – buying prescription drugs in mexico online
medication from mexico pharmacy: mexican mail order pharmacies – mexican drugstore online