上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 44 下一页
摘要: 1,创建单链表,用尾插入法给单链表赋初始值,并打印出链表的全部数据 1 /*尾插入法 2 创建单链表 3 */ 4 5 6 #include<stdio.h> 7 #include<stdlib.h> 8 9 //链表内存结构 10 typedef struct LinkList { 11 int 阅读全文
posted @ 2020-03-10 15:04 shanlu 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 1,npm v 查看npm的版本 2, npm version 查看所有模块的版本 3,npm 帮助说明 4,npm search 包名 搜索模块包 5,npm install / i 包名 在当前目录安装 包 5,npm install 包名 g 全局模式安装包(全局安装的包一般都是一些工具) 7 阅读全文
posted @ 2020-03-06 14:50 shanlu 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1,新建一个文件夹 hello_npm 2, cmd 到这个文件夹路径 3,npm init ( 建立一个 package.json 文件) 4, npm install math ( 安装 和math 相关的包) 5, 打开 hello_npm 可以看到 node_modules 和 packag 阅读全文
posted @ 2020-03-06 11:38 shanlu 阅读(1779) 评论(0) 推荐(0) 编辑
摘要: 在 demo.js 文件中,有 var a=10; 要判断 a 是不是全局的变量,可以使用 node 中的全局对象 global。 任何全局变量都是全局对象的属性,所以如果 console.log(global.a);可以打印出10,证明 a 是全局变量, 而结果是 undefined 说明 a不是 阅读全文
posted @ 2020-03-05 21:33 shanlu 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<math.h> 3 struct Complex { 4 double a;//实部 5 double b;//虚部 6 }; 7 void initComplex(double x, double y) { 8 printf("%.2f 阅读全文
posted @ 2020-03-04 22:45 shanlu 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define Capacity1 10 4 #define Capacity2 5 5 struct List { 6 int* ElemSet; 7 int len; 8 int capacity; 9 }li 阅读全文
posted @ 2020-03-04 19:56 shanlu 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 操作步骤: 1,求两个线性表的长度 2,从线性表LB中依次察看每个数据元素:GetElem(LB,i) -> e 3,依次在线性表LA中进行查仿:LocateElem(LA,e, equal()) 4,若不存在,则插入之。ListInsert(LA,n+1, e) 1 #include<stdio. 阅读全文
posted @ 2020-03-04 19:18 shanlu 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 顺序表基本操作实现 1 #include<stdio.h> 2 #define Capacity 5 3 4 //自定义顺序表 5 struct List{ 6 int* ElemSet;//声明了一个名为ElemSet的长度不确定的数组,也叫“动态数组” 7 int len; //顺序表的长度 8 阅读全文
posted @ 2020-03-04 13:09 shanlu 阅读(163) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-02-28 00:19 shanlu 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1,目标: ①模拟实现一个基于文本界面的《家庭收支软件》 ②涉及知识点 局部变量和基本数据类型 循环语句 分支语句 简单的屏幕输出格式控制 2,需求说明: ①模拟实现基于文本界面的《家庭收支软件》 ②该软件能够记录家庭的收入、支出,并能够打印收支明细表 ③项目采用分级菜单方式,主菜单如下: 家庭收支 阅读全文
posted @ 2020-02-27 22:32 shanlu 阅读(272) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 44 下一页