摘要:
#include <iostream> using namespace std; int Ssmallest(int q, int w, int e); int a, b, c; int d, e, f; int smallest; int main() { Ssmallest(d, e, f); 阅读全文
posted @ 2021-07-01 15:26
江南王小帅
阅读(164)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int main(){ float a, b, s; cout << "a b" << endl; cin >> a >> b; s = a; if (a < b) { s = b; //if语句中只有这一个语句,可省略 阅读全文
posted @ 2021-07-01 15:03
江南王小帅
阅读(44)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int main() { //测试表达式类型的转换 int n = 100, m; double x = 3.4157, y; cout << "n*x = " << n * x << endl; //赋值类型转换 m 阅读全文
posted @ 2021-07-01 14:57
江南王小帅
阅读(17)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int main() { //用 sizeof 计算各类种常量的字节长度 cout << "sizeof('\(') = " << sizeof('\)') << endl; cout << "sizeof(1) = 阅读全文
posted @ 2021-07-01 14:44
江南王小帅
阅读(215)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int main() { //按位与 cout << "32&12=" << (32 & 12) << endl; //按位异或 cout << "43^23 = " << (43 ^ 23) << endl; //按 阅读全文
posted @ 2021-07-01 14:26
江南王小帅
阅读(66)
评论(0)
推荐(0)
摘要:
// Project23.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; int main() { char name1[50]; char name2[50]; /cin >> nam 阅读全文
posted @ 2021-07-01 11:01
江南王小帅
阅读(36)
评论(0)
推荐(0)

浙公网安备 33010602011771号