无符号整形(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的时候真的感觉是见鬼了。
Achat mГ©dicament en ligne fiable: pharmacie en ligne pas cher – pharmacie en ligne fiable
pharmacie en ligne sans ordonnance: cialis prix – acheter mГ©dicament en ligne sans ordonnance
pharmacie en ligne france livraison internationale Cialis sans ordonnance 24h vente de mГ©dicament en ligne
http://vgrsansordonnance.com/# Acheter viagra en ligne livraison 24h
http://clssansordonnance.icu/# pharmacie en ligne sans ordonnance
trouver un mГ©dicament en pharmacie п»їpharmacie en ligne france pharmacie en ligne livraison europe
SildГ©nafil 100 mg prix en pharmacie en France: Sildenafil Viagra – Viagra pas cher inde
Pharmacie sans ordonnance: acheter mГ©dicament en ligne sans ordonnance – trouver un mГ©dicament en pharmacie
medication from mexico pharmacy: purple pharmacy mexico price list – buying from online mexican pharmacy
mexico pharmacies prescription drugs
mexican pharmaceuticals online: medication from mexico – mexican drugstore online
buying from online mexican pharmacy
acheter mГ©dicament en ligne sans ordonnance: pharmacie en ligne – pharmacie en ligne france pas cher
http://vgrsansordonnance.com/# Prix du Viagra 100mg en France
pharmacie en ligne sans ordonnance: Medicaments en ligne livres en 24h – pharmacie en ligne sans ordonnance
http://clssansordonnance.icu/# pharmacie en ligne france fiable
SildГ©nafil 100mg pharmacie en ligne viagra sans ordonnance SildГ©nafil 100 mg prix en pharmacie en France
canadian pharmacy oxycodone Pharmacies in Canada that ship to the US certified canadian pharmacy
https://mexicanpharma.icu/# buying from online mexican pharmacy
http://mexicanpharma.icu/# pharmacies in mexico that ship to usa
canadian pharmacy meds trustworthy canadian pharmacy my canadian pharmacy
http://canadapharma.shop/# canadian compounding pharmacy
https://indiadrugs.pro/# cheapest online pharmacy india
canadian pharmacy mall Canadian Pharmacy canada drugs reviews
https://indiadrugs.pro/# mail order pharmacy india
http://canadapharma.shop/# www canadianonlinepharmacy
trusted canadian pharmacy Cheapest online pharmacy medication canadian pharmacy
medication from mexico pharmacy https://mexicanpharma.icu/# mexican rx online
mexican online pharmacies prescription drugs
mexican mail order pharmacies https://mexicanpharma.icu/# buying prescription drugs in mexico online
buying prescription drugs in mexico online
reputable indian online pharmacy: Indian pharmacy international shipping – online pharmacy india
purple pharmacy mexico price list mexican pharmacy mexican mail order pharmacies
http://canadapharma.shop/# thecanadianpharmacy
http://mexicanpharma.icu/# best online pharmacies in mexico
pharmacy website india: online Indian pharmacy – indian pharmacy
legitimate canadian online pharmacies: Pharmacies in Canada that ship to the US – canadian pharmacy mall
pharmacies in canada that ship to the us: Cheapest online pharmacy – canadian world pharmacy
best online pharmacies in mexico: reputable mexican pharmacies online – mexican online pharmacies prescription drugs
http://indiadrugs.pro/# indian pharmacies safe
http://canadapharma.shop/# cheapest pharmacy canada
top online pharmacy india Indian pharmacy international shipping indian pharmacies safe
canada drugs online: Online medication home delivery – legal to buy prescription drugs from canada
pharmacies in mexico that ship to usa: mexican pharma – mexico drug stores pharmacies
mexican border pharmacies shipping to usa: mexican pharma – medicine in mexico pharmacies
indianpharmacy com: Indian pharmacy international shipping – india online pharmacy
canadian pharmacy uk delivery: Online medication home delivery – canadianpharmacymeds com
pharmacy website india: Online medication home delivery – best online pharmacy india
mexican mail order pharmacies: mexican pharmacy – reputable mexican pharmacies online
pharmacy website india: indianpharmacy com – best india pharmacy
top 10 online pharmacy in india: online Indian pharmacy – india online pharmacy
https://indiadrugs.pro/# cheapest online pharmacy india
http://canadapharma.shop/# ordering drugs from canada
canadian drugs: Cheapest online pharmacy – canadian drug stores