摘要: #include <stdio.h> int main() { int arr[2][3] = { {1,2,3}, {4,5,6}, }; int i,j; int b[3][2]; for(i=0;i<=1;i++){ for(j=0;j<=2;j++){ printf("%5d",arr[i] 阅读全文
posted @ 2024-11-08 21:31 昵-称 阅读(135) 评论(0) 推荐(0)
摘要: #include <stdio.h> void swap(int *p1,int *p2){ int tmp; tmp = *p1; *p1 = *p2; *p2 = tmp; }; int shunxu(int *a1,int *a2,int *a3){ if(*a1 > *a2){ swap(a 阅读全文
posted @ 2024-11-06 16:13 昵-称 阅读(66) 评论(0) 推荐(0)
摘要: 需求如下: 根据提供的多个【文件名】来批量创建word文件; 注意:在一个【空文件夹】中放置该脚本 需要创建的名字如下: P1-如何学习英语音标 P2-2017音标第1课 发音特点 P3-2017音标第2课 划分音节 P4-2017音标第3课 元音1 P5-2017音标第4课 元音2 P6-2017 阅读全文
posted @ 2024-09-20 11:11 昵-称 阅读(35) 评论(0) 推荐(0)
摘要: 题目: 设计一个结构体,存储学生的姓名、性别、年龄 定义一个结构体指针变量,存储3个学生的信息,通过该指针对每 个结构体中的成员变量行赋值 #include <stdio.h> #include <stdlib.h> #define NAMELEN 32 struct student{ char n 阅读全文
posted @ 2024-09-03 00:28 昵-称 阅读(17) 评论(0) 推荐(0)
摘要: C语言-小题目 题目: 1、程序给定一个在 1 ~ 100 之间的【随机整数】,玩家有3次机会猜测这个数字。 2、每次玩家输入一个数字后,程序会提示输入的数字是大了还是小了。 3、如果玩家在三次以内猜对,程序会给出相应的恭喜词,同时提示玩家在第几次猜到了数字; 4、如果都没猜对,程序会输出 “【菜狗 阅读全文
posted @ 2024-08-29 03:26 昵-称 阅读(31) 评论(0) 推荐(0)
摘要: Typora语法 参考文章:https://blog.csdn.net/realize_dream/article/details/105962748 Typora是一款开源写作神器,如果还不会使用Typora,强烈建议花你最宝贵的30分钟去学习一下,就30钟就可以让你学会Typora。 Typor 阅读全文
posted @ 2024-07-09 23:11 昵-称 阅读(45) 评论(0) 推荐(0)