- 博客(22)
- 资源 (215)
- 问答 (3)
- 收藏
- 关注
原创 SSH远程链接:SCP远程拷贝文件与文件夹
scp是ssh的一部分,可以进行远程文件拷贝。下面以本地A和远程机器B为例介绍:首先本地A:用户名为rongtao,ip地址为:180.201.178.4远程机器B的信息如下:远程用户名Toa,ip地址:172.18.174.84在本地机器A上进行如下操作,可以讲文件拷贝至远程机器B上:在远程机器B上进行如下操作,可以将文件拷贝至本地机器上:
2017-12-16 22:30:56 7887
转载 ubuntu下MySQL的安装使用与卸载-程序编译
1.安装:原文链接在ubuntu下安装超级简单:1.sudo apt-get install mysql-server2.sudo apt-get install mysql-client3.sudo apt-get install libmysqlclient-dev安装过程中会提示输入密码并确认(记住这个密码)。检查是否安装成功:sudo netstat -
2017-12-16 15:19:47 375
原创 SSH远程连接:简单的连接
在已知用户名和ip的情况下,简答的ssh如下:rongtao@rongtao:~$ ssh Toa@172.18.174.84Toa@172.18.174.84's password: Last login: Sat Dec 16 13:53:18 2017 from 172.18.175.51-bash-4.1$ lsalgorithmsDataStructures clean.s
2017-12-16 13:41:43 1064
原创 c++用宏定义来编写函数#define
#include<iostream>#include<stdlib.h>#include<assert.h>#include"hello.h"#ifdef _OPENMP#include<omp.h>#endif#define CHECK(arg){ \ ...
2017-12-14 22:43:47 3770
原创 linux shell学习(一)第一个hello world
#!/bin/bash#we have less than 3 arguents# $#表示命令行参数的个数if [ $# -lt 3 ];then # $*表示命令行参数 echo $* elif [ $# -eq 3 ];then echo $*elif [ $# -gt 3 ];then echo $*fi# file是在命令行参数中的循环
2017-12-14 21:43:51 436
原创 C语言二叉树之二叉链表
#include#include#include#include/* 二叉链表 */typedef struct BTNode{ char ch; struct BTNode *lchild, *rchild;}BTNode, *BinTree;BTNode *newBTNode(char ch){ BTNode *node = (BTNode*)m
2017-12-05 22:56:47 1528
原创 C语言串 typedef char String[MaxLength + 1]
#include#include#includetypedef char String[250];/* 0索引号单元存放串的长度 */void setString(String str, char *chs){ str[0] = strlen(chs); int i; for(i=1;i<=str[0];i++) str[i] = *(ch
2017-12-05 22:07:39 999
原创 C语言斐波那契的递归函数 Fibonacci
#include#include/* 斐波那契的递归函数 */int Fibonacci(int i){ if(i<=1) return 1; else if(i==2) return 2; else return Fibonacci(i-1) + Fibonacci(i-2);}int main(int a
2017-12-05 20:52:48 2490
原创 C语言队列之链队列
#include#includetypedef struct Node{ int data; struct Node *next;}Node , *LinkList;typedef struct { LinkList front, rear; }LinkQueue;LinkQueue initQueue(){ LinkQueue Q
2017-12-05 20:41:58 484
原创 C语言队列之循环队列
#include#include#define max 10typedef struct { int data[max]; int front; int rear; }Queue;int init(Queue *Q){ Q->front = Q->rear = 0; return 1;}int clear(Queue
2017-12-05 19:43:54 763
原创 C语言堆栈之链栈
在Linux下的GCC这个程序是正确的:#include#includetypedef struct Node{ int data; struct Node *next; }Node, *Stack;/* */void show(Stack S){ if(S == NULL) { printf("Stack N
2017-12-05 19:39:41 486 1
原创 C语言堆栈之顺序栈
在linux下GCC这个程序是正确的:#include#include#define len 10;typedef struct{ int elem[10]; int top; }SqStack;void show(SqStack S){ printf("show:"); int i; for(i=0;i<S.top;
2017-12-05 19:30:19 432
原创 C语言线性表之双向循环链表
#include#include/* 结构体:双向循环链表 */typedef struct DuLNode{ int data; struct DuLNode *prior, *next;//内部有两个指针:前、后 }DuLNode, *DuLinkList;/* 创建双向链表 */DuLinkList CreatDuLinkList(int *
2017-12-05 19:21:42 430
原创 C语言线性表之循环单链表
#include#includeint typeOfLinkList;typedef struct LNode{ int data; struct LNode *next;}LNode, *LoopLinkList;/* 基本算法(遍历) */void show(LNode *L, int n){ int in = 0; printf(" S
2017-12-05 19:19:58 458
原创 C语言线性表之单链表
#include#includeint typeOfLinkList;typedef struct LNode{ int data; struct LNode *next;}LNode, *LinkList;/* 基本算法(遍历) */void show(LNode *L){ printf(" Show: "); do{ pr
2017-12-04 22:24:26 409
原创 C语言线性表之顺序表
#include#includetypedef int bool;#ifndef false#define false 0#endif#ifndef true #define true 1#endif#define MaxSize 100typedef struct{ int elem[MaxSize]; int length;} List;/*
2017-12-04 19:32:23 605
原创 C语言冒泡法排序(四种方法)
#include#includetypedef int bool;#ifndef false#define false 0#endif#ifndef true #define true 1#endifvoid exchange(int *a, int *b){ *a = *a + *b; *b = *a - *b; *a = *a - *b;}
2017-12-04 19:00:08 4033
原创 C++关键字
asm ;auto ;bool ;break ;case;catch ;char ;class ;const ;const_cast;continue ;default ;delete ;do ;double;dynamic_cast; else ;enum ;explicit ;export;extern ;false ;float ;for ;...
2017-12-03 21:08:11 761
原创 C++常量---初识
#includeusing namespace std;int main(int argc, char*argv[]){ char ch = 'a';//-128 ~ 127, unsigned char: 0 ~ 255 int a = sizeof ch; short b = sizeof(a); long c = sizeof(a) + sizeof
2017-12-03 20:32:47 251
原创 版本为2.5的OpenMP的所有API函数
函数名作用omp_in_parallel判断当前是否在并行域中omp_get_thread_num返回线程号omp_set_num_threads设置后续并行域中的线程个数omp_get_num_threads返回当前并行区域中的线程数omp_get_max_threads获取并行域可用的最大线程数目o
2017-12-01 17:31:48 624 1
原创 版本为2.5的OpenMP规范中的编译制导指令汇总
OpenMP的所有编译制导指令是以#pragma omp开始#pragmaomp指令 [子句[,子句]„] 版本为2.5的OpenMP规范中的指令有以下这些:parallel:用在一个结构块之前,表示这段代码将被多个线程并行执行; for:用于for循环语句之前,表示将循环计算任务分配到多个线程中并行执行,以实现任务分担,必须由编程人员自己保证每次循环之间无数据相关性;para
2017-12-01 17:22:36 998 1
C语言设计模式 PDF《C Design Pattern》
2024-04-17
C, GNUC GCC 预处理《The C Preprocessor》
2024-04-16
User Guide: Open Build Service
2022-05-13
CentOS Stream 9 nasm 安装包
2022-05-01
CentOS Stream 9 nasm 源码包
2022-05-01
Optimizing Linux Kernel with BOLT.pdf
2022-01-21
red_hat_enterprise_linux-8-customizing_anaconda-en-us.pdf
2022-01-18
cclinux-coreos-34.20211111.3.0-live.x86_64.iso
2021-11-11
Ftrace Kernel Hooks-More than just tracing.pdf
2021-10-22
cpumemory-What Every Programmer Should Know About Memory.pdf
2021-09-10
architecture-instruction-set-extensions-programming-reference
2021-09-10
System V Application Binary Interface - AMD64 Architecture
2021-09-10
Hidden Linux Metrics with Prometheus eBPF Exporter.pdf
2021-09-03
e2ap-v01.00.00.asn
2021-08-25
Intel 64 and IA-32 Architectures Software Developer’s Manual Combined
2021-07-07
谈谈你对Container Linux容器操作系统的理解
2021-11-14
Linux“实时补丁”导致CPU无法占满运行
2021-02-22
C语言如何将字符串“int”转化为int类型
2019-01-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人