#include "stdafx.h"
#include<iostream>
int _tmain(int argc, _TCHAR* argv[])
{
using namespace std;
int x;
cout<<"x="<<(x=100)<<endl;
cout<<"now x="<<x<<endl;
cout<<"the expression x<3 has the value:"<<(x<3)<<endl;
cout<<"the expression x>3 has the value:"<<(x>3)<<endl;
system("pause");
return 0;
}
表达式(x<y)将被判定为bool值ture或false
最新推荐文章于 2023-03-16 16:08:07 发布