- 博客(10)
- 收藏
- 关注
原创 简单DOS命令
tree 查看目录下所有子目录clsmd 创建目录copyecho打印输出到文件 echo>ok>ik.txtrm 删除目录del 删除文件
2022-03-28 13:01:42
348
原创 number07 安装给git,和github的基本用法
Git和github的基本用法首先下载安装 git for windows这是一个git的windows系统的命令行版本https://git-scm.com/downloads然后再安装tortoise git这个是这个工具的图形界面地址是https://tortoisegit.org/download/注意选择合适的版本54位或32位注意:先安装git 再安装tortois...
2019-11-22 23:44:22
102
原创 number 06 查找数组中的元素.(折半查找)找到返回下标,找不到返回-1
//折半查找数组中的数字,存在返回下标,不存在返回-1#define _CRT_SECURE_NO_WARNINGS 1#include <stdio.h>#include <stdlib.h>int main(){ int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int left = 0; int righ...
2019-11-21 23:40:22
395
原创 number 05
```c在这里插入代码#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h> #include <time.h>void Game(){ while(1){ //简易界面 printf("\n 猜数字游戏\n"); printf...
2019-11-20 23:48:47
66
原创 number 04
//在屏幕上输出有规律的图案#include<stdio.h>int main( ) { int i = 0; int j = 0; for (i = 0; i <10; i++) { for (j = 0; j < 2 * i - 1; j++) { printf("*"); } printf("\n"); } for (i = 0; ...
2019-11-19 22:13:15
62
原创 number 03
```c#include<stdio.h>int main() { int a[5] = {1,2,3,4,5 }; int b[5] = {6,7,8,9,10}; //定义两个数组,并交换内容 int i; int temp; for (i = 0; i < 5; i++) { temp = a[i]; a[i] = b[i]; b[i] = t...
2019-11-19 22:07:49
79
原创 number 02
在这里插入代码//交换两个整型变量的值#include <stdio.h>//用一个中间量int a = 9;int b = 8;int c;int main() { c = b; b = a; a = c; printf("a=%d\nb=%d", a, b); system("pause");}////交换两个整型变量的值#include <stdio...
2019-11-12 14:20:46
93
原创 number 01 C语言
在这里插入代码片 打印乘法口诀#include<stdio.h>#include<stdlib.h>int main() { int m, n = 0;\\1到9先控制一行 for (m = 1; m <= 9; m++) { for (n = 1; n <= 9; n++) { printf("%d*%d=%d",m, n, m*n); ...
2019-11-11 21:53:28
632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人