无符号整形(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 lipitor cheap: Atorvastatin 20 mg buy online – best price for generic lipitor
п»їcytotec pills online https://cytotec.pro/# Misoprostol 200 mg buy online
lasix 20 mg
http://furosemide.win/# lasix 40mg
https://lipitor.guru/# lipitor price in india
lipitor 20 mg generic lipitor india generic cost of lipitor
Abortion pills online buy misoprostol tablet buy cytotec pills
п»їcytotec pills online https://tamoxifen.bid/# nolvadex generic
lasix 100 mg tablet
cytotec pills buy online http://lisinopril.guru/# lisinopril 5 mg uk price
furosemida 40 mg
http://lisinopril.guru/# lisinopril 20mg 25mg
lipitor atorvastatin calcium: buy atorvastatin online – lipitor rx
how does tamoxifen work: buy tamoxifen citrate – nolvadex price
https://tamoxifen.bid/# tamoxifen medication
cytotec pills buy online https://lisinopril.guru/# zestril 5mg
lasix 100 mg
buy cytotec online fast delivery http://lisinopril.guru/# lisinopril 20 mg tablet cost
furosemide 40mg
nolvadex for pct: Purchase Nolvadex Online – tamoxifen and grapefruit
buy furosemide online: cheap lasix – lasix 100 mg tablet
lisinopril from canada Buy Lisinopril 20 mg online zestoretic 20 25
lipitor 10mg tablets lipitor 40 lipitor price drop
https://lisinopril.guru/# lisinopril 15 mg
https://lisinopril.guru/# lisinopril 10 india
order cytotec online https://cytotec.pro/# buy cytotec
lasix pills
lisinopril 15 mg: Buy Lisinopril 20 mg online – lisinopril online purchase
buy cytotec in usa https://tamoxifen.bid/# nolvadex half life
lasix furosemide 40 mg
lasix generic: furosemide – furosemide 100mg
buy cytotec over the counter cheapest cytotec Abortion pills online
buy cytotec pills online cheap cytotec best price cytotec buy online usa
mexican mail order pharmacies: Best online Mexican pharmacy – pharmacies in mexico that ship to usa
buy prescription drugs from india: indian pharmacy – india pharmacy
buy erectile dysfunction medication: online ed prescription same-day – where can i get ed pills
mexican rx online: Best pharmacy in Mexico – pharmacies in mexico that ship to usa
mexican border pharmacies shipping to usa: Mexico pharmacy online – mexico drug stores pharmacies
buying from online mexican pharmacy: mexican rx online – buying prescription drugs in mexico
п»їbest mexican online pharmacies: Certified Mexican pharmacy – mexican online pharmacies prescription drugs
http://mexicopharmacy.win/# buying prescription drugs in mexico online
п»їlegitimate online pharmacies india: Online India pharmacy – indian pharmacy
pills for erectile dysfunction online: Cheap ED pills online – buy ed meds
http://indiapharmacy.shop/# buy medicines online in india
buying from online mexican pharmacy: Best pharmacy in Mexico – medication from mexico pharmacy
reputable indian pharmacies: Top mail order pharmacies – reputable indian online pharmacy
http://edpillpharmacy.store/# online erectile dysfunction medication
https://edpillpharmacy.store/# ed rx online
mexico drug stores pharmacies: mexican pharmacy – reputable mexican pharmacies online
top online pharmacy india: Best Indian pharmacy – top 10 online pharmacy in india
http://indiapharmacy.shop/# india pharmacy
edmeds: cheap ed pills online – ed online meds
buying prescription drugs in mexico: mexico pharmacy win – mexican drugstore online
https://mexicopharmacy.win/# purple pharmacy mexico price list
mexican mail order pharmacies: Best online Mexican pharmacy – mexico drug stores pharmacies
erectile dysfunction pills for sale: cheap ed pills online – best ed meds online
http://edpillpharmacy.store/# online ed medications