/************************** * 演示逻辑运算表达式 * *************************/ #include<iostream> using namespace std; int main() { int x = 0, y = 1, z = 1; //注释:分别赋值x=0,y=1,z=1 x &a...
#include<iostream> using namespace std; int main() { float a,b,x; cout << "请分别输入a和b的值:"; cin >> a >> b; x = a; a = b; b = x; cout <&...
#include<iostream> using namespace std; int main() { float a,b,c,d; cout <<"请输入三个数:"; cin >> a >> b >> c; d = a > (d = (b > c) ? b : c)...
#include <iostream> using namespace std; int main() { int x, a, b, c, d; int s = 0; cout << "请输入一个四位数整数:" ; cin >> x; a = x % 10; b = x / 10 % 10...
/************************* * 程序名:平行四边形 * * 功 能:Unknown * *************************/ #include <iostream> #include <iomanip> using namespace std; int main() { cout <&l...