原创 linux下的讀寫打開,讀寫文件操作
#include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<fcnt
原创 centos找不到sqlite3.h的解決辦法
方法一: wget http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz tar xvzf sqlite-autoconf-3070500.tar.gz cd sqlite-autoco
原创 雙鏈表的冒泡排序
//冒泡排序 void BubbleSort(Node *pHead,Node *pTail){ int count = Si
原创 altium的基本知識
PCB層 Solder層 路銅層 Silkscreen層 絲印層 : 無導電特性,只有電氣特性 keep-out layer層:分割層 : 控制板子大小,形狀
原创 gdb 遇到No symbol table is loaded Use the file command的解決辦法
遇到gdb報錯 No symbol table is loaded. Use the "file" command.問題,在gcc編譯時就要加上gcc -g *.c -o -g選項的意義是“生成調試信息,該程序可以被調試器調試”
原创 解決makefile下clean命令不執行的問題
寫完makefile輸入make命令會發現在運行後並沒有刪除*.o文件 make會把makefile裏出現的第一個target當作缺省target。其他的除非是生成缺省target需要,不會執行。 你需要手動的執行make clean纔會
原创 解決centos ibus啓用中文輸入法以後仍然無法使用的問題
這是因爲缺少輸入法候選字顯示有關的庫的原因,添加命令:yum install gtk2-immodule-xim,下載以後reboot重啓,齊活!
原创 VMware Workstation 15.1 pro發佈,解決與更新windows兼容問題,有效解決各種虛擬機卡死問題
下載地址: http://download3.vmware.com/software/wkst/file/VMware-workstation-full-15.1.0-13591040.exe MD5SUM: f80fde2d48221d
原创 linux下的父子進程的驗證代碼
#include<stdio.h> #include<sys/types.h> #include<unistd.h> int main(){
原创 單鏈表的插入排序
stu *view_sort_math(stu *head) { struct student *first; struct student *t; struct student *p; stru
原创 鏈表的選擇排序
/********************************* 鏈表的排序 ********************************
原创 信號燈的使用,PV算法交替輸出AABB
通過對信號燈的PV操作實現AABB的連續輸出 #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/ipc.h> #include<sys/sem
原创 linux下的文件拷貝
#include<stdio.h> int main(int argc, char *argv[]) {if (argc != 3){printf("usage : ./copy filename1 file name2\n");}c
原创 單鏈表的冒泡排序
void BubbleSort(struct lnode *head) { struct lnode *f, *p, *x, *y;
原创 字符串的值的初始化
今天在寫鏈表的代碼時 typedef struct Node* node struct Node { node *next; char n[100]; } node newnode = (node)malloc(size