无符号整形(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 prednisone without a prescription: Prednisone Without Prescription – order prednisone online canada
purchase amoxicillin online without prescription: Amoxicillin Com Pharm – amoxicillin script
clomid generic: rexpharm – buy generic clomid without insurance
how to get clomid without rx: clomid – can i purchase clomid without prescription
cost of amoxicillin 875 mg: Amoxicillin buy online – where to buy amoxicillin
cheap priligy: dapoxetine online – Priligy tablets
can i purchase cheap clomid without rx: rexpharm – order cheap clomid now
order prednisone online canada: prednisone ray pharm – prednisolone prednisone
priligy max pharm dapoxetine online max pharm
prednisone in uk: ray pharm – cost of prednisone
buy amoxicillin 500mg uk https://prednisoneraypharm.com/# prednisone without rx
order cheap clomid pills: rex pharm – where to get generic clomid price
buy prednisone canada cheap prednisone prednisone 50 mg canada
can i purchase clomid without prescription: clomid purchase online rex pharm – how to buy generic clomid without rx
max pharm: buy dapoxetine online – dapoxetine online
amoxicillin 500 https://clomidrexpharm.com/# get generic clomid price
amoxicillin where to get Com Pharm amoxicillin discount coupon
amoxicillin 500: amoxil com pharm – buying amoxicillin in mexico
how can i get clomid: buy clomid – can you buy generic clomid for sale
amoxicillin buy online canada http://amoxilcompharm.com/# can you buy amoxicillin uk
best over the counter ed pills https://canadiandrugsgate.com/# buy medication online
male erectile dysfunction
http://mexicanpharmgate.com/# buying from online mexican pharmacy
mexican online pharmacies prescription drugs: mexican drugstore online – pharmacies in mexico that ship to usa
https://mexicanpharmgate.com/# reputable mexican pharmacies online
canadian drugs online canadian drugs gate erectile dysfunction drugs
ed pills for sale: Canada pharmacy – ed prescription drugs
reputable indian pharmacies: Best online Indian pharmacy – world pharmacy india
https://indianpharmacyeasy.com/# indian pharmacy online
http://indianpharmacyeasy.com/# top online pharmacy india
top 10 pharmacies in india: indian pharmacy – reputable indian pharmacies
ed treatment review Canada pharmacy online ed meds
buying from online mexican pharmacy: mexican pharmacy – buying prescription drugs in mexico
http://canadiandrugsgate.com/# best ed medicine
http://mexicanpharmgate.com/# reputable mexican pharmacies online
mexican pharmaceuticals online: MexicanPharmGate – mexican mail order pharmacies
http://mexicanpharmgate.com/# buying from online mexican pharmacy
top 10 pharmacies in india indianpharmacyeasy.com buy prescription drugs from india
https://indianpharmacyeasy.com/# reputable indian online pharmacy
mens ed pills: Best Canadian online pharmacy – best canadian online pharmacy
http://indianpharmacyeasy.com/# top 10 pharmacies in india
https://canadiandrugsgate.com/# hims ed pills
http://indianpharmacyeasy.com/# Online medicine home delivery