无符号整形(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的时候真的感觉是见鬼了。
mexican pharmaceuticals online mexico drug stores pharmacies medication from mexico pharmacy
medication from mexico pharmacy mexican online pharmacies prescription drugs mexican pharmaceuticals online
Online medicine order: world pharmacy india – india online pharmacy
top 10 online pharmacy in india: mail order pharmacy india – best india pharmacy
medicine in mexico pharmacies: buying prescription drugs in mexico online – mexican drugstore online
pharmacy global rx review: pharmacy viagra generic – viagra pharmacy coupon
http://indianpharmacy.company/# cheapest online pharmacy india
most reliable online pharmacy no prescription pharmacy avandia pharmacy
rx mart pharmacy viagra online pharmacy usa generic viagra online us pharmacy
http://mexicopharmacy.cheap/# medicine in mexico pharmacies
top 10 online pharmacy in india: indian pharmacy – best online pharmacy india
indian pharmacy online: Online medicine home delivery – best online pharmacy india
compound pharmacy online: antibiotics online pharmacy – kamagra oral jelly online pharmacy
indian pharmacy online reputable indian pharmacies Online medicine home delivery
online shopping pharmacy india: india pharmacy – indian pharmacy
generic viagra online pharmacy no prescription: pharmacy reviewer provigil – shoppers pharmacy
https://indianpharmacy.company/# indian pharmacy paypal
kamagra pharmacy online: ed pharmacy viagra – ambien india pharmacy
https://pharmbig24.com/# cheapest prescription pharmacy
mexican drugstore online п»їbest mexican online pharmacies п»їbest mexican online pharmacies
pharmacy usa store best online pharmacy tadalafil online pharmacy paroxetine
nexium online pharmacy: diovan pharmacy coupons – guardian pharmacy propecia
walgreen pharmacy hours by store: pharmacy store design layout – best pharmacy price cialis
online pharmacy testosterone: pharmacy cost of cymbalta – duloxetine online pharmacy
indian pharmacy: mail order pharmacy india – indian pharmacies safe
http://mexicopharmacy.cheap/# mexico pharmacies prescription drugs
online pharmacy cheap cialis target pharmacy store locator fluconazole tesco pharmacy
mexico drug stores pharmacies mexican drugstore online buying prescription drugs in mexico online
https://pharmbig24.com/# online pharmacy store hyderabad
online pharmacy pain: doxycycline online pharmacy – caring pharmacy viagra
online shopping pharmacy india: mail order pharmacy india – online pharmacy india
Online medicine order: top 10 online pharmacy in india – top 10 pharmacies in india
compound pharmacy domperidone: rx meaning in pharmacy – Malegra FXT plus
mexican mail order pharmacies: buying prescription drugs in mexico online – mexican drugstore online
http://indianpharmacy.company/# Online medicine home delivery
http://indianpharmacy.company/# best online pharmacy india
online pharmacy india: mail order pharmacy india – top 10 online pharmacy in india
buy prescription drugs from india: online pharmacy india – mail order pharmacy india
canadia online pharmacy neurontin pharmacy assistance doxycycline online pharmacy no prescription
viagra pharmacy prices uk oxybutynin online pharmacy good neighbor pharmacy ibuprofen
mexico drug stores pharmacies: best online pharmacies in mexico – mexican pharmaceuticals online
indian pharmacies safe: reputable indian pharmacies – indianpharmacy com
pain meds online without doctor prescription: is online pharmacy legit – costa rica pharmacy percocet
one click pharmacy propecia: Dipyridamole – diflucan pharmacy price
motilium inhouse pharmacy: Paxil – mexican pharmacy online percocet
24 hour pharmacy near me: buy propecia online pharmacy – Duricef
what pharmacy sells azithromycin: tri luma online pharmacy – lamisil online pharmacy
online pharmacy no prescription percocet: cymbalta online pharmacy price – clozaril registry pharmacy
https://pharm24on.com/# buy hcg online pharmacy
mail order pharmacies
https://drstore24.com/# target pharmacy augmentin
american rx pharmacy