上一页 1 ··· 15 16 17 18 19
摘要: C 变量 变量其实只不过是程序可操作的存储区的名称。C 中每个变量都有特定的类型,类型决定了变量存储的大小和布局,该范围内的值都可以存储在内存中,运算符可应用于变量上。 1.C 中的变量定义 变量定义就是告诉编译器在何处创建变量的存储,以及如何创建变量的存储。变量定义指定一个数据类型,并包含了该类型 阅读全文
posted @ 2020-01-25 14:19 阳神 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 因编译器的原因,生成的 .exe 文件打开时会一闪而过,从而观察不到其运行的结果,这是因为 main() 函数结束时,DOS 窗口会自动关闭。为了避免这个问题可在 return 0; 前加入 system(“pause”); 语句。 #include <stdio.h> #include <stdl 阅读全文
posted @ 2020-01-24 13:31 阳神 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 运行 C 程序,main(int argc, char *argv[]) 函数传参,argc 为参数个数,argv 是字符串数组, 下标从 0 开始,第一个存放的是可执行程序的文件名字,然后依次存放传入的参数,举个例子 HelloWorld.c : #include <stdio.h> int ma 阅读全文
posted @ 2020-01-23 19:33 阳神 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 首先是jdk的安装 首先准备好相应版本jdk的安装包。双击下载的 exe,如 jdk-8u131-windows-x64.exe。进... 阅读全文
posted @ 2020-01-21 17:50 阳神 阅读(82) 评论(0) 推荐(0) 编辑
摘要: https://www.echartsjs.com/examples/zh/index.html https://developer.mozilla.org/zh-CN/docs/Web/Guide/AJAX https://www.layui.com/ ht... 阅读全文
posted @ 2020-01-16 23:27 阳神 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 文件命名规则 文件名称统一用小写的英文字母、数字和下划线的组合,其中不得包含汉字、空格和特殊字符;命名原则的指导思想一是使得你自... 阅读全文
posted @ 2020-01-16 23:17 阳神 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.为什么使用内部类? 使用内部类最吸引人的原因是:每个内部类都能独立地继承一个(接口的)实现,所以无论外围类是否已经继承了某个(接... 阅读全文
posted @ 2020-01-14 21:56 阳神 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 字典对象的核心是散列表。散列表是一个稀疏数组(总是有空白元素的数组),数组的 每个单元叫做 bucket。每个 bucket 有两部... 阅读全文
posted @ 2020-01-13 17:37 阳神 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 单链表中的每个结点不仅包含值,还包含链接到下一个结点的引用字段。通过这种方式,单链表将所有结点按顺序组织起来。 下面就是单链表例子:... 阅读全文
posted @ 2019-12-24 13:44 阳神 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include#include#include //时间函数 #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2//... 阅读全文
posted @ 2019-07-01 17:56 阳神 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include "iostream"#include "string.h"#include "stdio.h"int main(){ int i,j,k,l; j=0; char a[100],b[100]; gets(a); ... 阅读全文
posted @ 2019-07-01 17:56 阳神 阅读(60) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#define OK 1#define ERROR 0#define OVERFLOW -2#define MAXSIZE 100typedef int Status;typedef char SElemType... 阅读全文
posted @ 2019-07-01 17:55 阳神 阅读(68) 评论(0) 推荐(0) 编辑
摘要: #include #include #include typedef int Status;typedef float ElemType;typedef struct LXNode{ ElemType data; struct LXNode * next;}L... 阅读全文
posted @ 2019-07-01 17:53 阳神 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;//定义结构体;typedef struct Polynode{ int coef; int exp; struct Polynode *next;}Polynode... 阅读全文
posted @ 2019-07-01 17:53 阳神 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct student{ long number;//学号 char name[10];//姓名 char sex[3];//性别 int age;//年龄 ... 阅读全文
posted @ 2019-07-01 17:52 阳神 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #include #include #include typedef int Status;typedef float ElemType;typedef struct DuLNode{ ElemType data; struct DuLNode *prior... 阅读全文
posted @ 2019-07-01 17:52 阳神 阅读(79) 评论(0) 推荐(0) 编辑
摘要: #include #include #include typedef float ElemType;typedef int Status;typedef struct SXLNode{ ElemType data; struct SXLNode *prior... 阅读全文
posted @ 2019-07-01 17:51 阳神 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define MAXSIZE 1000 //链表的最大长度typedef float ElemType;//定义float的别名typedef int Status;//定义int的别名 typedef... 阅读全文
posted @ 2019-07-01 17:45 阳神 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 顺序表作为线性结构的一种,而线性结构的特点是:1.存在唯一的一个被称为“第一个”的元素,同时也存在唯一的一个被称为“最后一个”的元素... 阅读全文
posted @ 2019-04-11 12:54 阳神 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 数据结构清华大学出版社三元组(严蔚敏) 思路的构建 三元组的实现首先搭建必要的头文件以及相关函数的编写,最后通过主函数调用实现最终的... 阅读全文
posted @ 2019-04-11 12:53 阳神 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19