无符号整形(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的时候真的感觉是见鬼了。
ivermectin cream 1% ivermectin pills canada oral ivermectin cost
https://semaglutide.win/# rybelsus cost
https://zithromax.company/# zithromax online
https://stromectol.agency/# stromectol price usa
zithromax generic cost
Rybelsus 14 mg: Buy compounded semaglutide online – rybelsus
https://zithromax.company/# zithromax generic price
gabapentin 300 gabapentin best price neurontin over the counter
http://amoxil.llc/# amoxicillin 500
buy zithromax 1000 mg online
http://amoxil.llc/# can you buy amoxicillin uk
http://gabapentin.auction/# neurontin india
minocycline tablets: order stromectol – minocycline 50
32 neurontin buy gabapentin neurontin singapore
https://gabapentin.auction/# brand name neurontin price
order zithromax without prescription
https://semaglutide.win/# cheap Rybelsus 14 mg
medication neurontin 300 mg: order gabapentin – neurontin 800 mg tablets best price
buy amoxicillin online cheap buy amoxicillin where to buy amoxicillin 500mg without prescription
https://semaglutide.win/# order Rybelsus for weight loss
https://amoxil.llc/# amoxicillin 500mg capsule cost
can i buy zithromax online
http://gabapentin.auction/# neurontin without prescription
cost for ivermectin 3mg stromectol price minocycline 100 mg tablets online
stromectol ivermectin: stromectol for sale – ivermectin brand
https://amoxil.llc/# cheap amoxicillin 500mg
http://stromectol.agency/# stromectol 6 mg dosage
zithromax 500 price zithromax best price zithromax 500 mg lowest price drugstore online
neurontin 300 mg cost: cheapest gabapentin – neurontin 100 mg
https://zithromax.company/# generic zithromax azithromycin
пинап казино: pin up казино – pin up kz
пин ап казино pin up казино pin up казино
pin up https://pinupru.site/# pin up зеркало
pin up
pin up 306: pin up – pin-up oyunu
pin-up bonanza pin up casino guncel giris pin-up casino giris
пин ап кз https://pinupaz.bid/# pin up az
пинап казино
pin up: pin up – pin-up oyunu
pin-up casino giris pinup azerbaycan pin up az
пинап кз http://pinupturkey.pro/# pin-up casino giris
pin up kz
pin up: pin up kz – пинап кз
pin up http://pinupkz.tech/# пин ап казино онлайн
пин ап казино вход
pin-up casino: pin up aviator – pin-up bonanza
pin up azerbaijan pin-up casino giris pin-up kazino
pin up https://pinupkz.tech/# pin up kz
пин ап кз
pin-up kazino: pin up – pin up azerbaijan
пин ап казахстан пин ап казино онлайн пинап кз
пин ап 634 http://pinupaz.bid/# pinup az
pin up
pin up azerbaijan pin up azerbaijan pin up azerbaijan
pin-up casino giris: pin-up kazino – pinup az
pin up http://pinupturkey.pro/# pin up guncel giris
пинап кз
https://rybelsus.shop/# buy semaglutide pills
buy semaglutide online rybelsus price rybelsus price
https://ozempic.art/# ozempic online
ozempic online ozempic coupon ozempic online