文章列表

筛选

冒泡排序(C语言)

摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <stdlib.h> #incl……

diary 2021.12.9

摘要:今日题目:字符串反转void swap(char *p1,char *p2){ int temp;  temp=*p1; *p1=*p2; *p2=temp;}交换两个值的函数(按地址传递)……

diary 2021.12.10

摘要:要求:3*3矩阵的转置难度不高(难的那道题我还没做出来),先拿这道题开刀(涉及指针的一些用法,标出来了#include<stdio.h>void swap(int *p1,int *p2){ int ……

diary 2021.12.11

摘要:八进制化十进制难题还是没有写出来写个一般通过转进制函数#include <stdio.h>  int main() {    int octalNumber;    scanf("%d", &octa……

对于二分法的简单理解

摘要:```c #include #include int search(int*nums,int numsSize,int target) { int middle=0;//中间值初始化 为零……

2021.12.26DAY415

摘要:       在宿舍隔离第四天,也不知道今天是怎么过的,激不起一丝的兴趣,一天的生活起居全在宿舍里,对于一个成天打游戏的人,成天追剧的人来说,这种生活应该是他们最向往的吧!有趣的是,由于是个线上考试,……

Java中对于一维数组的使用哦!

摘要:声明一维数组有两种方式.数据类型可以是java中常用的类型,数组名称要符合标识符命名规则。参数[]可以放在数据类型前或数组名称后。数组类型[ ] 数组名称;//声明一维数组int[ ] usernam……

第H道题目的

摘要:#include<iostream>#include<string>using namespace std;int main(){string a;getline(cin, a);          ……