摘要: 1.R语言安装套件(packages)的方法如下 install.packages("套件名称")例如:install.packages("ggplot2") 若要载入已经安装的套件,则需要在Console内输入: library(ggplot2) 2.函式使用 使用方式: 函式名称(参数1,参数2 阅读全文
posted @ 2020-04-26 01:34 s0ra+ 阅读(188) 评论(0) 推荐(0)
摘要: RunC.sublime-build { "cmd": ["gcc","${file}","-fexec-charset=gbk","-o", "${file_path}/${file_base_name}"], "file_regex":"^(..[^:]*):([0-9]+):?([0-9]+) 阅读全文
posted @ 2020-04-19 02:19 s0ra+ 阅读(186) 评论(0) 推荐(0)
摘要: 摘录自https://zhuanlan.zhihu.com/p/45846342 阅读全文
posted @ 2020-04-18 17:39 s0ra+ 阅读(208) 评论(0) 推荐(0)
摘要: 一,常用命令 dir 列出当前目录下的所有文件 clc 清屏 clear all 清除环境(从内存中清除变量) who 将内存中的当前变量以简单形式输出 close all 关闭所有的Figure窗口 二.随机序列常用命令 rand : 均匀分布随机矩阵 rand %无变量输入时只产生一个随机数 y 阅读全文
posted @ 2020-04-17 22:17 s0ra+ 阅读(161) 评论(0) 推荐(0)
摘要: 將會初始化下圖所示的數據結果: 阅读全文
posted @ 2020-04-14 22:35 s0ra+ 阅读(128) 评论(0) 推荐(0)
摘要: ``` #include struct test { char *name; char *member1; char *member2; char *member3; }os[3]; int main(int argc, char const *argv[]) { int i = 0; os[0].name = "Linux"; os[0].member1 = "Ubuntu"; os[0].me 阅读全文
posted @ 2020-04-13 22:14 s0ra+ 阅读(102) 评论(0) 推荐(0)
摘要: 代碼: 1 #include "stdio.h" 2 int main(int argc, char const *argv[]) 3 { 4 int a[10]={1,2,3,4,5,6,7,8,9,0}; 5 int * pi = a; 6 printf("%p\n",pi); 7 printf 阅读全文
posted @ 2020-04-13 03:36 s0ra+ 阅读(118) 评论(0) 推荐(0)
摘要: 代碼: 1 #include "stdio.h" 2 #include "stdlib.h" 3 4 typedef struct node 5 { 6 int data; 7 struct node * next; 8 }node; 9 10 node * createLinkedList(int 阅读全文
posted @ 2020-04-13 02:47 s0ra+ 阅读(141) 评论(0) 推荐(0)
摘要: 1 #include "stdio.h" 2 int main(int argc, char const *argv[]) 3 { 4 int a[10]; 5 int i,j; 6 int * pi = a; 7 for (int i = 0; i < 10; ++i) 8 { 9 a[i] = 阅读全文
posted @ 2020-04-12 17:38 s0ra+ 阅读(117) 评论(0) 推荐(0)
摘要: ""基础设置: "去掉vi的一致性" set nocompatible "显示行号" set number " 隐藏滚动条" set guioptions-=r set guioptions-=L set guioptions-=b "隐藏顶部标签栏" set showtabline=0 "设置字体 阅读全文
posted @ 2020-03-08 18:15 s0ra+ 阅读(148) 评论(0) 推荐(0)