- 博客(21)
- 收藏
- 关注
原创 QML的介绍(下)
importQtQuick2.12//引入QtQuick模块,版本2.12importQtQuick.Window2.12//引入QtQuick.Window模块,用于创建窗口,版本2.12importQtQuick.Controls2.5//引入QtQuick.Controls模块,用于UI控件,版本2.5importQtGraphicalEffects1.14//引入QtGraphicalEffects模块,用于图形效果,版本1.14Window{
2025-01-14 22:44:22
746
原创 计算机网络常见的各层以及他们的协议
计算机网络中的协议分层模型,如OSI七层模型和TCP/IP四层模型(或五层模型),定义了网络通信的不同层次和相应的协议。
2024-12-22 16:57:40
877
原创 计算机网卡
计算机中的网卡数量并不是固定的,它取决于计算机的配置和用途。一般来说,普通计算机可能有一个或多个网卡。例如,桌面计算机通常至少有一个以太网卡(用于有线连接)和一个无线网卡(用于无线连接),而笔记本电脑则通常至少有一个无线网卡。此外,如果计算机安装了虚拟机,还可能会有虚拟网卡。网卡,全名为网络接口卡(Network Interface Card),是计算机与网络之间的桥梁。总之,网卡是计算机与网络之间的关键接口,它允许计算机通过网络与其他计算机通信、访问互联网、共享资源等。
2024-12-22 15:03:03
203
原创 c++primer plus第五章循环和关系表达式编程练习答案
#include<iostream>int main(void){ using namespace std; int min, max; cout << "please input your frist number: "; cin >> min; cout << "please input your next number: "; cin >> max; int sum = 0; for (int i = min; i &l.
2022-03-30 15:39:41
914
1
原创 c++ primer plus 第四章编程练习答案
#include<iostream>#include<string>int main(void){ using namespace std; string f_name; string l_name; char grade; int age; cout << "What ia your frist name?"; getline(cin, f_name);//string 与getline输入配对, cout << endl; cou.
2022-03-12 22:11:11
1955
原创 C语言数组顺序查找元素
#include<stdio.h>#define N 10 //顺序查找法int main(void){ int num[N] = { 1,4,19,6,28,100,9,13,16,40 } ; int i; int x; scanf_s("%d", &x); for (i = 0; i < N; i++) { if (num[i] == x) { break; } } if (i < N) printf("查找成功,是第.
2021-11-01 20:44:51
2334
原创 关于数组折半法查找元素
折半查找#include<stdio.h>#define N 10int main(){ int a[N] = { 1,4,6,9,13,16,19,28,40,100 }; int x, i = -1, low, high, mid; low = 0; high = N - 1; scanf_s("%d", &x); while (low <= high) { mid = (high + low) / 2; if (x == a[mid]) {.
2021-11-01 20:40:54
361
原创 编写程序,打印以下图形(用星号打印正立的的三角形)
#include<stdio.h>int main(void){ int a, b, c; for (a = 1; a <= 4; a++) { for (b = 4; b >= a; b--) { printf(" "); } for (c = 1; c <= 2*a-1; c++) { printf("*"); } printf("\n"); } return 0;}
2021-10-23 08:30:18
2065
原创 编写程序,打印以下图形
#include<stdio.h>int main(void){ int a, b, c, d; for (a = 1; a <= 4; a++) { for (b = 0; b <=a; b++) { printf("\t"); } for (c = 1; c <= 4; c++) { printf("*"); } printf("\n"); } return 0;}
2021-10-22 13:04:31
4199
原创 2021-10-21简单C语言题。关于买鸡的问题
公鸡五元一只,母鸡三元一只,小鸡一元三只,一百元要买一百只鸡,且需要包含公鸡,母鸡和小鸡。请编写程序公鸡五元一只,母鸡三元一只,小鸡一元三只,一百元要买一百只鸡,且需要包含公鸡,母鸡和小鸡。请编写程序,输出所有的方案。,输出所有的方案。...
2021-10-21 23:23:57
532
原创 打印所有的水仙花数,所谓水仙花数是指一个三位数,其中各位数字的立方和等于该数本身,如153=1^3+5^3+3^3。
#include<stdio.h>int main(void){ int a, b, c, n; for(n = 100; n <= 1000; n++) { a = n / 100; b = n / 10 % 10; c = n % 10%10; if (a * a * a + b * b * b + c * c * c == n) { printf("%d ", n); } } printf("\n"); return 0;}..
2021-10-21 22:39:22
4900
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人