无符号整形(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的时候真的感觉是见鬼了。
can you buy clomid without dr prescription: cost cheap clomid without insurance – clomid prices
10mg prednisone daily prednisone online australia prednisone 20mg online without prescription
amoxicillin azithromycin: amoxicillin generic – rexall pharmacy amoxicillin 500mg
http://prednibest.com/# prednisone 100 mg
where can i buy prednisone online without a prescription prednisone 10mg for sale cost of prednisone
amoxicillin 500 mg tablets: buy amoxicillin 500mg online – where to buy amoxicillin
cipro online no prescription in the usa: buy cipro without rx – purchase cipro
http://cipharmdelivery.com/# buy cipro without rx
prednisone prescription for sale PredniBest prednisone canada prices
can i buy cheap clomid without dr prescription: can i buy clomid without prescription – where to buy generic clomid without a prescription
purchase cipro: ciprofloxacin 500mg buy online – buy cipro online canada
order cheap clomid: can i get clomid price – order generic clomid without rx
cost of amoxicillin 875 mg: amoxicillin 500mg price – amoxicillin 500 mg without a prescription
buy generic ciprofloxacin п»їcipro generic buy cipro online canada
where to buy generic clomid no prescription: clomidonpharm – can you buy cheap clomid without insurance
clomid online clomid on pharm buy cheap clomid without dr prescription
generic amoxicillin: buy amoxil – amoxicillin 500mg price in canada
http://prednibest.com/# prednisone 5 50mg tablet price
ciprofloxacin 500mg buy online: CiPharmDelivery – buy cipro online canada
amoxicillin online without prescription AmoxStar can i purchase amoxicillin online
order cheap clomid for sale: cost cheap clomid pills – can i order generic clomid online
buying amoxicillin online amoxicillin buy no prescription amoxicillin 875 125 mg tab
http://amoxstar.com/# cost of amoxicillin prescription
https://amoxstar.com/# how to buy amoxicillin online
can i get generic clomid without a prescription cheap clomid online get cheap clomid for sale
prednisone 20 mg tablet price: Predni Best – prednisone pak
https://clomidonpharm.com/# cost clomid
https://clomidonpharm.com/# where buy clomid no prescription
how to get cheap clomid online: clomid on pharm – how can i get generic clomid price
generic ed pills Canada Pharmacy online reviews erectile dysfunction pills
world pharmacy india: Online medicine home delivery – п»їlegitimate online pharmacies india
mexican rx online Mexican pharmacies that ship to the United States mexico drug stores pharmacies
https://canadianpharmi.com/# ed causes and treatment
drug store online: Canadian pharmacy prices – prices of viagra at walmart
indian pharmacy: India pharmacy international – indianpharmacy com
http://indiapharmi.com/# mail order pharmacy india
mexican drugstore online Best online Mexican pharmacy buying from online mexican pharmacy
canadian online pharmacy: Canada Pharmacy – how to overcome ed naturally
https://indiapharmi.com/# online pharmacy india
online prescription for ed meds canadian pharmi pain medications without a prescription
https://canadianpharmi.com/# best ed pills at gnc
Online medicine home delivery: indian pharmacy – top 10 online pharmacy in india
pet meds without vet prescription: Best Canadian pharmacy – online prescription for ed meds
https://indiapharmi.com/# buy medicines online in india
how to overcome ed naturally canadian pharmi best way to treat ed
erectile dysfunction treatment: Canada Pharmacy online reviews – cialis without a doctor’s prescription
https://canadianpharmi.com/# ed doctors
medications list: Canada Pharmacy – best male enhancement pills
best drugs for erectile dysfunction canadianpharmi what causes ed
http://indiapharmi.com/# online pharmacy india