原创 sizeof(void)

#include <stdio.h> #include <stdlib.h> void calc_joe(void *ptr) {     printf("1--%d\n", sizeof(ptr));     printf("1++%d

原创 git口令記錄

git branch -m old_branch new_branch # Rename branch locally    

原创 【轉】什麼是交叉編譯,爲什麼要使用交叉編譯

https://www.cnblogs.com/zhaiyf/p/8144319.html 一、什麼是交叉編譯        在一種計算機環境中運行的編譯程序,能編譯出在另外一種環境下運行的代碼,我們就稱這種編譯器支持交叉編譯。這個編譯過

原创 關於c中結構體的寫法

1.我所學的: struct  student{ ````` }stu1;   2.看到的: typedef struct{ ````` }student;     這二者什麼區別

原创 xampp和wordpress搭建局域網站點

       手頭有個空閒的舊機子,又想着搭個網站,搜了一些帖子,最後決定,在Ubuntu上,安裝xampp,並用wordpress作爲網站源碼,搭個局域網的站點。申請域名、雲服務器之類暫不去搞。過程如下 1. 系統Ubuntu14.04