无符号整形(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的时候真的感觉是见鬼了。
![](https://blog.coolight.cool/wp-content/uploads/2022/03/image-13.png)
paxlovid covid: Paxlovid buy online – paxlovid covid
where can i buy generic clomid pill: can you get generic clomid online – cost generic clomid pill
clomid no prescription: can i order generic clomid without dr prescription – can you get generic clomid without dr prescription
cipro: buy ciprofloxacin over the counter – ciprofloxacin generic
amoxicillin 500 mg where to buy: amoxicillin for sale – amoxicillin 250 mg
https://clomiddelivery.pro/# where to buy generic clomid now
https://paxloviddelivery.pro/# buy paxlovid online
paxlovid covid: п»їpaxlovid – paxlovid cost without insurance
http://amoxildelivery.pro/# amoxicillin 500mg for sale uk
paxlovid pharmacy: paxlovid generic – paxlovid cost without insurance
https://ciprodelivery.pro/# cipro for sale
Paxlovid over the counter: paxlovid price – paxlovid pharmacy
https://amoxildelivery.pro/# can you buy amoxicillin over the counter
buy amoxicillin online no prescription: where to get amoxicillin over the counter – order amoxicillin no prescription
http://ciprodelivery.pro/# ciprofloxacin generic
https://doxycyclinedelivery.pro/# doxycycline india cost
can i purchase clomid now: generic clomid for sale – clomid pill
http://ciprodelivery.pro/# cipro for sale
https://paxloviddelivery.pro/# paxlovid pill
amoxicillin without rx: where to get amoxicillin over the counter – amoxicillin without a prescription
https://paxloviddelivery.pro/# paxlovid for sale
https://paxloviddelivery.pro/# п»їpaxlovid
antibiotic doxycycline: doxycycline 50mg – doxycycline prescription cost uk
10 doxycycline gel: doxycycline capsules for sale – order doxycycline
http://ciprodelivery.pro/# cipro for sale
http://doxycyclinedelivery.pro/# doxycycline capsules purchase
http://ciprodelivery.pro/# ciprofloxacin 500 mg tablet price
buy cipro online usa: п»їcipro generic – buy ciprofloxacin
https://ciprodelivery.pro/# cipro online no prescription in the usa
paxlovid india: п»їpaxlovid – paxlovid generic
https://doxycyclinedelivery.pro/# cost of doxycycline in canada
https://amoxildelivery.pro/# where can you get amoxicillin
https://indiapharmast.com/# india online pharmacy
buying prescription drugs in mexico online: mexican rx online – mexican pharmaceuticals online
canadian pharmacy: canadian neighbor pharmacy – canada rx pharmacy world
canada cloud pharmacy canadian pharmacy price checker canadian online drugstore
mexican pharmaceuticals online: mexico pharmacies prescription drugs – mexican online pharmacies prescription drugs
https://canadapharmast.online/# reliable canadian pharmacy
Online medicine order: indian pharmacy paypal – indian pharmacy online
mexican rx online mexican mail order pharmacies buying prescription drugs in mexico online
mexican rx online: mexican pharmacy – buying prescription drugs in mexico
canadian pharmacies that deliver to the us: reliable canadian online pharmacy – best online canadian pharmacy
buying prescription drugs in mexico online: pharmacies in mexico that ship to usa – best online pharmacies in mexico
mexican pharmacy mexico pharmacies prescription drugs mexico pharmacy
legit canadian online pharmacy: canadian neighbor pharmacy – canada drug pharmacy
https://foruspharma.com/# п»їbest mexican online pharmacies
buying prescription drugs in mexico online: mexican pharmacy – pharmacies in mexico that ship to usa
https://indiapharmast.com/# india pharmacy mail order
best canadian pharmacy to order from canadian pharmacy prices www canadianonlinepharmacy
canadian mail order pharmacy: canadian drugs – canadian drug stores