
实验案例
实验案例
JackieDYH
阅技术、码经验、勤总结、乐分享、喜交流。
展开
-
Echarts折线图不交叉责任再stack熟悉
stack 的原因,stack 值为 ‘总量是’,折线图堆叠(第二条线的数值=本身的数值+第一条线的数值,第三条的数值=第二条线图上的数值+本身的数值,以此类推......)显示,修改值或者直接删除这个属性series: [ { name: '人员凌晨高频出入', type: 'line', stack: '总量', data: [320, 132, 101, 134, 90, 230, 210], itemStyle: { normal: { color: ".原创 2020-09-03 11:48:33 · 2584 阅读 · 0 评论 -
echarts自定义图表内字体颜色-属性设置
接触到一个大数据可视化项目,需要用到echarts图标,在使用中会需要对部分图标或字体做自定义设定,这些设定虽然不是太难,设定方法也仅在官网上的配置文档中修改折线图坐标轴字体颜色xAxis: { type: 'category', boundaryGap: false, data: ['08/21', '08/22', '08/23', '08/24', '08/25', '08/26', '08/27'], axisLabel:{//修改坐标系字体颜色 show:true,...原创 2020-09-03 11:35:41 · 12361 阅读 · 1 评论 -
echarts修改X轴Y轴和折线的颜色-示例代码
<div id="cate" ref="cate"></div>setCate() { this.cate = this.$echarts.init(this.$refs.cate); var option = { tooltip: { trigger: "item", formatter: "{a} <br/>{b} : {c}" }, xAxi...原创 2020-09-02 13:36:16 · 777 阅读 · 0 评论 -
auto.js脚本自动点击屏幕双11自动领金币
自动领金币脚本auto软件和js脚本在本人的csdn的上传资源下载如何使用,见博客底部auto.waitFor();var height = device.height;var width = device.width;toast("\n设备宽" + width + "\n" + "设备高" + height + "\n" + "手机型号" + device.model...原创 2020-08-01 09:31:27 · 11373 阅读 · 1 评论 -
c语音编写的回文数
#include <stdio.h>#include <stdlib.h>#include <string.h>int IsPalindrome(const char *cScr);void main(void){ char cStr[21]; while(1) { gets(cStr); printf("%d\n",IsPalin...原创 2019-10-24 17:45:28 · 859 阅读 · 0 评论 -
二叉树遍历
#include<stdio.h>#include<malloc.h>struct tree{ int data; struct tree *lchild,*rchild;};typedef struct tree linktree; //别名void xianxu(linktree *p){ if(p!=NULL) { printf...原创 2019-09-29 09:51:24 · 263 阅读 · 0 评论 -
顺序结构的串
//顺序结构的串#include<stdio.h>#include<string.h>#include<malloc.h>#define MAXSIZE 100struct string{ char elem[MAXSIZE]; int length; };int sub_string(struct string *s1,stru...原创 2019-09-29 09:50:27 · 356 阅读 · 0 评论 -
顺序栈的进制转换
//顺序栈 #include<stdio.h>#include<malloc.h>#define MAXSIZE 100struct stack { //建立结构体 int elem[MAXSIZE]; int top;}; //struct stack *s; //建立一个包含两个元素的栈 void in_stack(st...原创 2019-09-29 09:49:16 · 1020 阅读 · 0 评论 -
链式栈进制转换
//链式栈 #include<stdio.h>#include<malloc.h>struct node { int data; struct node *next;}; void in_stack(struct node *top,int x) //入栈 { struct node *p; while(x!=0) { p=(struct...原创 2019-09-29 09:48:22 · 697 阅读 · 0 评论 -
数据结构链栈
//链栈#include<stdio.h>#include<malloc.h>struct node{ int data; struct node *next;};main(){ struct node *top,*p,*q; int x; scanf("%d",&x); top=(struct node *)malloc(sizeo...原创 2019-09-29 09:47:08 · 348 阅读 · 0 评论 -
数据结构顺序栈
#include<stdio.h>#include<malloc.h>struct stack{ int elem[100]; int top;};main(){ struct stack s; //建立栈 s是定义一个栈,包含两个元素(*s代表指针需要开辟空间)是全局变量下面使用s时不需要定义了 int x; scanf("%d",&a...原创 2019-09-29 09:46:29 · 401 阅读 · 0 评论 -
数据结构二叉树
#include<stdio.h>struct node{ int weight; //权值 int parent; //双亲节点 int lchild,rchild; //左孩子右孩子};main(){ struct node ht[1000]; int w[1000]; //权值 int n; //共几个叶子节...原创 2019-09-30 09:24:34 · 378 阅读 · 0 评论 -
字符覆盖
#include<stdio.h> #include<string.h>void main(){char a[]="Programming";char t;int i,j=0,k;k=strlen(a);for(i=0;i<k;i++) for(j=i+1;j<k;j++) if(a[i]<a[j]) { t=a[i]; pr...原创 2019-09-30 09:25:40 · 446 阅读 · 0 评论 -
子函数最大公约数
#include<stdio.h>int gy(int m,int n){int r; if(m<n){ r=m; m=n; n=r; } for(r=n;r>=2;r--){ if(m%r==0 && n%r==0) return(r); }} main(){int x,y; scanf("%d%d",&...原创 2019-09-30 09:26:18 · 506 阅读 · 0 评论 -
最大公约数最小公倍数
#include<stdio.h>main(){int x,y,z,m,i,a=1;scanf("%d%d",&x,&y);m=x;if(x<y){ x=y; y=m;}for(i=2;i<=y;i++){ if(x%i==0 && y%i==0) a=i;}printf("zdgys=%d",a);printf...原创 2019-09-30 09:26:51 · 355 阅读 · 0 评论 -
简单的c程序学生成绩管理系统
#include <stdio.h>#include <stdlib.h>#include <string.h>#define MAX 1000typedef struct Lesson //定义课程结构体{int Lesson_Num;char Lesson_Name[50];int Lesson_Mark;int Lesson_Credi...原创 2019-09-30 09:28:24 · 528 阅读 · 0 评论 -
基于c语言的学生档案管理系统设计实现
#include<stdio.h>#include<string.h>struct Student//声明结构体类型{int num;char name[20]; char sex; int age; char beizhu[100]; 13};void main(){int count=0,i; char m[10]={"ray"};//定义密码 ch...原创 2019-09-30 09:31:02 · 3451 阅读 · 5 评论 -
彩球滚动
#include <graphics.h>#include <conio.h>#include <time.h>#include <stdio.h>#include <stdlib.h>#include <dos.h>#include <string.h>// 引用 Windows Multime...原创 2019-09-30 09:32:18 · 550 阅读 · 0 评论 -
参数曲面设计
#ifndef _mynurbs_h#ifndef _MYNURBS_H#include "gl\gl.h"#include "math.h"//*-*-*-*-*-*-*-*-*-*-*-*-*-*-* B样条基函数计算部分 *-*-*-*-*-*-*-*-*-*-*-*-*-*//确定参数u所在的节点区间下标//n=m-p-1 //m为节点矢量U[]的最大下标//p为B样条...原创 2019-09-30 09:33:52 · 637 阅读 · 0 评论 -
学生成绩信息管理c++
-------dyh--------#include<iostream>#include<cstring>using namespace std;struct student{ char id[11]; //学生学号 char name[10]; //学生姓名 char xy[14]; //学院 int c; int jd...原创 2019-09-26 17:24:02 · 565 阅读 · 0 评论 -
数据结构链表
#include<stdio.h>#include<malloc.h>struct node{ //定义一个结构体 int data; struct node *next; };void input_linklist(struct node *l) //建立一个名为l的链表 { int i; struct node *p1,*p2,*p3; ...原创 2019-09-29 09:45:17 · 369 阅读 · 0 评论 -
c语言中冒泡排序算法实现
/*已知一顺序表l中的存储的数据元素的类型为整型。顺序表中元素的值为(12,24,16,7,5,8,36,44,7,10) (1)定义一个算法,打印输出顺序表中所有元素的值。 (2)定义一个算法,求L中7的个数。 (3)定义一个算法在L中第5个元素前插入一个值为17的元素。 (4)删除顺序表中值为8的元素。 (5)查找顺序表中值为36的元素的位置,有36的话返回其下标+1,没有返回...原创 2019-09-29 09:43:58 · 512 阅读 · 0 评论 -
学生成绩管理系统
#include <stdio.h>#include <string.h>#include<stdlib.h>struct stu { int id; char name[10]; int subnum; ...原创 2019-09-26 17:34:05 · 524 阅读 · 0 评论 -
九九乘法表
main.cpp#include<iostream.h>#include "prow.h"void main(){ fun1(); cout<<'\n'; cout<<'\n'; fun2(); cout<<'\n'; cout<<'\n'; fun3();}por1.cpp#include<i...原创 2019-09-26 17:32:05 · 327 阅读 · 0 评论 -
类版本_新闻管理系统
#include<iostream>#include<fstream>#include<cstring>using namespace std;struct st_list{ char address[50]; char author[20]; char title[50]; char text[2050];};templat...原创 2019-09-26 17:27:49 · 367 阅读 · 0 评论 -
多重继承的构造顺序
#include<iostream>using namespace std;class a{ public: a() { cout<<"\na\n"; }};class b{ public: b() { cout<<"\nb\n"; }};class c{ public: c() { c...原创 2019-09-26 17:26:49 · 642 阅读 · 0 评论 -
斐波那契递归
#include<iostream>using namespace std;int Fibonacci(int n){ if(n==1 || n==2) // 递归结束的条件,求前两项 return 1; else return Fibonacci(n-1)+Fibonacci(n-2); // 如果是求其它项,先要求出它前面两项,然后做和。}void outp...原创 2019-09-26 17:21:01 · 518 阅读 · 0 评论 -
菲波那契数
#include<iostream>using namespace std;int dg(int n){ if(n==1 || n==2) return 1; else return dg(n-1)+dg(n-2);}int main(){int n; cout<<"输出菲波那契数第n项:"; cin>>n; cout<...原创 2019-09-26 17:19:44 · 373 阅读 · 0 评论 -
大数乘c++
#include<iostream>using namespace std;int cheng(int x,int y){ int sum; sum=x*y; return sum; }double cheng(double x,double y){ double sum; sum=x*y; return sum; }int main(){ dou...原创 2019-09-26 17:18:57 · 325 阅读 · 0 评论 -
级数求和算法c++
#include<iostream>#include<iomanip>#include<cmath>using namespace std;void input(double * x){ cout<<"0.0<=x<=40.0"<<endl; cin>>*x;}double db(doubl...原创 2019-09-26 17:17:14 · 2609 阅读 · 0 评论 -
区号查询系统
#include<stdio.h> #include<malloc.h>#include<string.h>typedef struct{ char chengS[10];//城市 char quH[10];//区号 }stu;stu s;int caiD()//菜单主界面 { int i; printf("**************...原创 2019-09-27 09:12:22 · 2922 阅读 · 2 评论 -
二进制转十进制
#include<stdio.h>#include<string.h>int main(){ char s[100]={0}; int n=0,i=0,m=1,sum=0; gets(s); while(s[i++]) n++; //统计实际有多少位 for(i=0;i<n;i++) { sum=sum+(s[n-i-1]-'0')*m;...原创 2019-09-27 09:13:36 · 546 阅读 · 0 评论 -
十进制转二进制
#include <stdio.h> int main(){ int n,a[100],i=0,j; scanf("%d",&n); while(n) { a[i++]=n%2; n/=2; } for(j=i-1;j>=0;j--) printf("%d",a[j...原创 2019-09-27 09:14:26 · 274 阅读 · 0 评论 -
调用子函数计算max
#include<stdio.h>int max(int a,int b,int c) {int max=a; if(max<b) max=b; if(max<c) max=c; return max;}main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);printf("%d",max(a,...原创 2019-09-29 09:39:49 · 432 阅读 · 0 评论 -
输入一个数拆成之积为
#include "math.h"main(){ int n; void f(int n); scanf("%d",&n); printf("%d=",n);if(n<0) printf("-"); n=fabs(n); fun(n);}void fun(int n){ int k,r;for(k=2;k<=sqrt(n);k...原创 2019-09-27 09:19:53 · 340 阅读 · 0 评论 -
输出字符串中个位数小于六的数
#include <stdio.h>void PRINT(long s){ FILE *out; printf("s=%ld\n",s); if((out=fopen("result.dat","w+"))!=NULL) { fprintf(out,"s=%ld",s); fclose(out); }}main(){ int a[50]={...原创 2019-09-27 09:19:18 · 421 阅读 · 0 评论 -
输出一个字符串中出现次数最多的一个字符
#include <stdio.h>#include <string.h>void fun(char a[]){ int b[26], i, n,max; /*数组b用于统计26个字母个数*/ for (i=0; i<26; i++) b[i] = 0; /*$ERROR$*/ n= st...原创 2019-09-27 09:18:42 · 1203 阅读 · 0 评论 -
计算各位数为5678且每位不同
#include <stdio.h>void PRINT(long s){ FILE *out; printf("s=%ld\n",s); if((out=fopen("result.dat","w+"))!=NULL) { fprintf(out,"s=%ld",s); fclose(out);}}main(){ /*考生在此设计程序*/in...原创 2019-09-27 09:17:43 · 525 阅读 · 0 评论 -
告白程序
#include<stdio.h>#include<stdlib.h>#include<math.h>#include<windows.h>#define MY_BUFSIZE 1024HWND GetConsoleHwnd(void){ HWND hwndFound; char pszNewWindowTitle[MY_BUFS...原创 2019-09-27 09:16:55 · 1801 阅读 · 0 评论 -
打印图形数
#include<stdio.h>main(){ int i,j; for(i=5;i>=1;i--) {for(j=5;j>=1;j--) {if(j<=i) printf("%d",j); else printf(" "); } for(j=2;j<=5;j++) {if(j<=i) printf("%d",j...原创 2019-09-27 09:16:15 · 313 阅读 · 0 评论