原创 【C語言】二維數組轉置

#include <stdio.h> #include <stdlib.h> #define LINE 3 #define COLUMN 3 //3x3二維數組轉置 int a[LINE][COLUMN]={}; void arr

原创 【C語言】合併,排序兩個鏈表

#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <assert.h> typedef struct stu{ int id;

原创 【彙編語言】8086處理器標誌寄存器的作用和DEBUG中的表示

CF:    進位標誌是用來反映計算時是否產生了由低位向高位的進位,或者產生了從高位到低位的借位 。 PF:    奇偶標誌是用來記錄相關指令執行後,其結果的所有的  Bit  位中  1  的個數是否爲偶數 。 ZF:    記錄

原创 【C語言】位的運算(深入理解計算機系統第三版習題2.12)

#include <stdio.h> #include <stdlib.h> int main(){ int a = 0x87654321; int b,d,c,e; b = a & 0xFF; // 0

原创 【SHELL】統計Nginx訪問日誌狀態碼

######################################################################### # File Name: check_nginx_server.sh # Auth

原创 RSA簽名驗證的JAVA JDK實現方式

package com.crypt.my; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGener

原创 【C語言】判斷字符串是否是迴文

#include <stdio.h> #include <stdlib.h> #include <string.h> //判斷一個字符串是不是迴文 (正序跟倒序是一樣的) int is_back_content(char *s

原创 【彙編語言】王爽第三版 - 實驗11

把以0結尾的字符串小寫轉大寫  DATAS SEGMENT ;此處輸入數據段代碼 db "Beginner's All-purpose Symbolic Instruction Code.",0 DATAS END

原创 【C語言】截取字符串實現

#include <stdio.h> #include <stdlib.h> #include <string.h> //從m長字符串中第n個位置複製字符到另外一個字符串 char* substr(char *str,int

原创 【SHELL】監控Nginx運行,Mysql主從運行,主從複製延遲

#!/bin/bash Resettem=$(tput sgr0) server_url='http://www.zhongfenqi.com/ngx_status' mysql_slave_addr='192.168.1.1

原创 【C語言】FORK子進程的創建和回收(按順序回收)

/* ============================================================================ Name : test.c Author :

原创 【SHELL】監控系統信息CPU,磁盤,內存

#!/bin/bash ############################## # #system infomation # ############################## clear if `test $#

原创 【C語言】統計字符數

#include <stdio.h> #include <stdlib.h> //統計字符串字符個數 int upcount=0,lowcount=0,spacecount=0,numcount=0,othercount=0;

原创 【C語言】結構體判斷一個日期是該年的第幾天

#include <stdio.h> #include <stdlib.h> struct date { int year; int month; int day; } date; int main()

原创 【C語言】動態鏈表建立工人檔案,並輸出結果

#include <stdio.h> #include <stdlib.h> #include <malloc.h> struct factor{ int id; //工號 char name[2