无符号整形(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://indiapharmacy.shop/# п»їlegitimate online pharmacies india
india pharmacy mail order: Cheapest online pharmacy – buy medicines online in india
http://indiapharmacy.shop/# indian pharmacy online
mexican rx online: mexican pharmacy – mexican mail order pharmacies
buying prescription drugs in mexico online: mexico pharmacy win – mexican pharmaceuticals online
http://indiapharmacy.shop/# top 10 online pharmacy in india
mexico drug stores pharmacies: Certified Mexican pharmacy – mexican pharmaceuticals online
indian pharmacy online: Best Indian pharmacy – mail order pharmacy india
https://edpillpharmacy.store/# cheap erectile dysfunction pills
erectile dysfunction pills for sale: Cheapest online ED treatment – where to buy erectile dysfunction pills
best online pharmacy india: Online India pharmacy – mail order pharmacy india
http://indiapharmacy.shop/# Online medicine order
Online medicine order: Online pharmacy USA – mail order pharmacy india
buy medicines online in india: Indian pharmacy online – indian pharmacy
http://indiapharmacy.shop/# top 10 pharmacies in india
https://mexicopharmacy.win/# mexican mail order pharmacies
buy erectile dysfunction medication: Best ED meds online – online erectile dysfunction prescription
buy ed medication: ED meds online with insurance – online ed meds
https://indiapharmacy.shop/# top 10 pharmacies in india
cheapest online ed treatment
cheap ed drugs: cheap ed pills online – ed rx online
buying prescription drugs in mexico online: Certified Mexican pharmacy – mexican mail order pharmacies
https://indiapharmacy.shop/# п»їlegitimate online pharmacies india
http://edpillpharmacy.store/# online erectile dysfunction medication
http://mexicopharmacy.win/# mexico drug stores pharmacies
ed online meds
https://indiapharmacy.shop/# india pharmacy
ed pills
mexico pharmacies prescription drugs: mexican pharmacy – reputable mexican pharmacies online
п»їed pills online: ed pills online – cheapest online ed treatment
https://mexicopharmacy.win/# mexican drugstore online
https://edpillpharmacy.store/# cheapest ed meds
where can i buy ed pills
https://indiapharmacy.shop/# п»їlegitimate online pharmacies india
ed meds by mail
http://mexicopharmacy.win/# mexican online pharmacies prescription drugs
best online pharmacies in mexico: Certified Mexican pharmacy – mexican pharmaceuticals online
best online pharmacy india: Online pharmacy USA – best india pharmacy
https://mexicopharmacy.win/# buying prescription drugs in mexico
erectile dysfunction pills for sale
https://mexicopharmacy.win/# purple pharmacy mexico price list
buy ed medication
https://sildenafil.llc/# buy viagra online without a prescription
buy viagra generic: Cheap Viagra 100mg – viagra canada
how long does viagra last: buy sildenafil online canada – real viagra without a doctor prescription
http://tadalafil.auction/# generic cialis 20 mg x 30
viagra vs cialis: Buy Viagra online in USA – buy viagra pills
https://tadalafil.auction/# cialis and dapoxetine
cheap viagra: Viagra online price – generic viagra without a doctor prescription
cialis overnight: cialis without a doctor prescription – herbal cialis
http://sildenafil.llc/# viagra
http://tadalafil.auction/# curved penis and cialis
buy cialis 20 mg: Buy Cialis online – cialis in melbourne australia
order cialis brand: Buy Tadalafil 20mg – viagra cialis
alternativa al viagra senza ricetta in farmacia: viagra senza ricetta – miglior sito per comprare viagra online
farmaci senza ricetta elenco: Farmacie online sicure – farmaci senza ricetta elenco
farmaci senza ricetta elenco: farmacie online affidabili – migliori farmacie online 2024