无符号整形(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的时候真的感觉是见鬼了。
neurontin 50mg cost neurontin cost generic neurontin 150 mg
https://gabapentin.club/# neurontin 100mg caps
buy cheap propecia without a prescription: order propecia without a prescription – order propecia without rx
neurontin 300mg tablet cost neurontin 800 mg tablets best price neurontin price uk
https://propeciaf.online/# order generic propecia for sale
http://mexicanpharmacy1st.com/# mexico pharmacy
medicine in mexico pharmacies п»їbest mexican online pharmacies п»їbest mexican online pharmacies
mexican online pharmacies prescription drugs: buying prescription drugs in mexico – best online pharmacies in mexico
https://mexicanpharmacy1st.com/# purple pharmacy mexico price list
reputable mexican pharmacies online: buying prescription drugs in mexico online – п»їbest mexican online pharmacies
https://mexicanpharmacy1st.com/# mexican drugstore online
best mexican online pharmacies: buying prescription drugs in mexico online – mexico drug stores pharmacies
mexican mail order pharmacies mexico pharmacy medicine in mexico pharmacies
http://mexicanpharmacy1st.com/# purple pharmacy mexico price list
mexican drugstore online: mexico pharmacies prescription drugs – reputable mexican pharmacies online
reputable mexican pharmacies online: mexican mail order pharmacies – mexico pharmacies prescription drugs
mexican online pharmacies prescription drugs buying prescription drugs in mexico online buying prescription drugs in mexico
https://mexicanpharmacy1st.online/# buying from online mexican pharmacy
mexico pharmacies prescription drugs: mexican border pharmacies shipping to usa – reputable mexican pharmacies online
purple pharmacy mexico price list mexico drug stores pharmacies mexican online pharmacies prescription drugs
https://mexicanpharmacy1st.online/# medicine in mexico pharmacies
buying prescription drugs in mexico online: mexican mail order pharmacies – mexican mail order pharmacies
https://mexicanpharmacy1st.online/# mexican pharmaceuticals online
https://mexicanpharmacy1st.online/# mexican online pharmacies prescription drugs
mexico drug stores pharmacies: mexican pharmaceuticals online – reputable mexican pharmacies online
mexico pharmacies prescription drugs: buying prescription drugs in mexico – reputable mexican pharmacies online
mexico drug stores pharmacies: medicine in mexico pharmacies – best mexican online pharmacies
http://mexicanpharmacy1st.com/# reputable mexican pharmacies online
mexican pharmaceuticals online pharmacies in mexico that ship to usa mexican pharmaceuticals online
medicine in mexico pharmacies: mexican pharmacy – medication from mexico pharmacy
https://mexicanpharmacy1st.shop/# buying prescription drugs in mexico
buying prescription drugs in mexico online mexico drug stores pharmacies mexican pharmacy
https://mexicanpharmacy1st.shop/# mexican rx online
mexican pharmaceuticals online: purple pharmacy mexico price list – reputable mexican pharmacies online
buying prescription drugs in mexico online: п»їbest mexican online pharmacies – mexican border pharmacies shipping to usa
https://mexicanpharmacy1st.shop/# mexico pharmacy
mexican drugstore online buying prescription drugs in mexico online mexico pharmacies prescription drugs
mexican pharmacy: mexican border pharmacies shipping to usa – purple pharmacy mexico price list
mexico drug stores pharmacies: mexican pharmaceuticals online – buying prescription drugs in mexico
prednisone steroids prednisone online buy prednisone online from canada
can you buy zithromax over the counter in australia: purchase zithromax online – zithromax generic price
https://zithromaxa.store/# zithromax cost uk
doxycycline 100mg dogs: doxy – buy cheap doxycycline
where to buy amoxicillin over the counter how to get amoxicillin over the counter amoxicillin over counter
buy zithromax online: can you buy zithromax over the counter in mexico – zithromax pill
where can i buy amoxicillin online: amoxicillin price canada – generic amoxicillin 500mg
https://gabapentinneurontin.pro/# neurontin cost in canada
prednisone 12 tablets price mail order prednisone prednisone tablets
neurontin 300mg capsule: medication neurontin – cost of neurontin 800 mg
http://zithromaxa.store/# buy zithromax online