原创 golang 垃圾回收

GC簡介 Go GC(Garbage Collection)垃圾回收是一種自動管理內存的方式.支持GC的語言無需手動管理內存,程序後臺自動判斷對象,是否存活並回收其內存空間,使開發人員從內存管理上解脫出來. 垃圾回收分類 引用計數 C++

原创 C語言 兩個輔助指針挖字符串--兩頭堵模型

  1、有一個字符串開頭或結尾含有n個空格(”     abcd1234    ”),欲去掉前後空格,返回一個新字符串。 要求1:請自己定義一個接口(函數),並實現功能;70分 要求2:編寫測試用例。30分 int trimSpace(c

原创 Openwrt Xshell遠程不能編輯make menuconfig選項問題的解決

#cd ~ #vim .bashrc 裏面加入:export TERM=xterm-color #保存。 #source .bashrc 斷開終端連接,重新連接即可。

原创 C語言 指針的輸入輸出特性

  //指針做函數參數具有輸入輸出的特性 //被調函數分配內存叫做輸出,主調函數分配內存叫做輸入 #define  _CRT_SECURE_NO_WARNINGS //取消vs2013警告 #include <stdio.h> #incl

原创 C語言 字符串做函數參數

#define  _CRT_SECURE_NO_WARNINGS  #include <stdio.h> #include <stdlib.h> #include <string.h> //字符串做函數參數,退化爲指針 //字符串copy

原创 C語言 指針數組的應用場景

#define  _CRT_SECURE_NO_WARNINGS  #include <stdlib.h> #include <string.h> #include <stdio.h> //指針數組經常用於菜單查找 int searchK

原创 C語言 0級指針到一級,二級指針的技術推演

#include <stdio.h> #include <stdlib.h> #include <string.h> //0級指針到一級,二級指針的技術推演 //總結: //用n級指針修改n-1級指針的值 //要想通過二級指針修改0級指針

原创 開發環境-Linux如何掛載U盤

linux如何掛載U盤 linux下如何掛載U盤?網上搜了一大堆,也做了筆記,去機房一試才發現都還是不對。 從mount命令開始。懷疑U盤格式不對, 果然, 如果是ntfs,那恭喜,需要安裝ntfs-3g的插件,而且沒有yum源,需要下

原创 mac中VMware無法識別USB設備的解決方法

To resolve this issue:1. Check if VMware USB arbitration services are running on the Mac.    To Check the above, Launch

原创 C語言 指針 遞歸反轉字符串

#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h>   //字符串逆序 int turnOnBuf(char *inbuf) {  

原创 OpenWrt qos網頁優先

#加載模塊: insmod xt_IPID insmod cls_u32                                                                                  

原创 亞馬遜AVS--樹莓派3麥克風配置

#Edit alsa config file as shownsudo vi /usr/share/alsa/alsa.confdefaults.ctl.card 1ddefaults.pcm.card 1defaults.pcm.dev

原创 C語言main函數參數詳解

#define  _CRT_SECURE_NO_WARNINGS #include <stdlib.h>#include <string.h>#include <stdio.h>int main(int a

原创 C語言冒泡排序

#define  _CRT_SECURE_NO_WARNINGS  #include <stdlib.h> #include <string.h> #include <stdio.h> //print //數組做函數參數退化爲指針 vo

原创 SecureCRT連接虛擬機中的Linux系統(Ubuntu)

SecureCRT連接虛擬機中的Linux系統(Ubuntu)[日期:2015-05-05]來源:Linux社區  作者:xuliangxing[字體:大 中 小]  最近在學習Linux,看了網上很多SecureCRT連接本地虛擬機當中