原创 寫了 windows RC 資源多語言string 替換的程序,發出來看下。
#include <iostream> #include <string> #include <vector> #include <sstream> #include <cstring> #include <fstream> /
原创 shell 文件遍歷
shell 文件遍歷 發現的一個腳本遍歷文件的寫的蠻不錯的記錄下。 #!/bin/bash function ergodic(){ for file in ` ls $1` do if [ -d $1"
原创 error while loading shared libraries: libstdc++.so.6: cannot open shared obj
linuxmint x86_64 位adb無法啓動。 Ubuntu14.04 ERROR WHILE LOADING SHARED LIBRARIES: LIBSTDC++.SO.6: CANNOT OPEN S Eclips
原创 python 獲得文件下文件的絕對目錄
import os import string rootdir = os.getcwd() print('rootdir = ' + roo
原创 setenv getenv
Linux命令:setenv 功能說明:查詢或顯示環境變量。 語 法:setenv [變量名稱][變量值] 補充說明:setenv爲tsch中查詢或設置環境變量的指令。 NAME setenv - change or ad
原创 postgresql Connection to database failed: FATAL: no pg_hba.conf entry for host "10.129.195.161", us
Connection to database failed: FATAL: no pg_hba.conf entry for host "10.129.195.161", user "appexternal", database "ins
原创 $@--目標文件,$^--所有的依賴文件,$
$@--目標文件,$^--所有的依賴文件,$<--第一個依賴文件。 = 是最基本的賦值 := 是覆蓋之前的值 ?= 是如果沒有被賦值過就賦予等號後面的值 += 是添加等號後面的值
原创 C++成員函數的重載、覆蓋與隱藏 .
原文鏈接http://blog.csdn.net/sendy888/article/details/1739113 成員函數的重載、覆蓋(override)與隱藏很容易混淆,C++程序員必須要搞清楚概念,否則錯誤將防不勝防。 成員函數
原创 linuxmint /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found by haylocki on Mon Nov 21, 2011 7:51 pm Hi, Been having
原创 pthread_create 用法多線程文件拷貝。
多線程文件拷貝。 #include <error.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <st
原创 go mod 後 emacs godef 找不到定義。
> # if running bash if [ -n "$BASH_VERSION" ]; then # include
原创 python 排序並統計相同文本出現的個數
#!/usr/bin/env python #Filename:readfile.py codelist=[] f=file('input.txt','r') map={} for i in f.readlines(): i =
原创 python 統計並排序文字出現的個數
#!/usr/bin/env python #Filename:readfile.py codelist=[] f=file('input.txt','r') lines = f.readlines(); for i in range(l
原创 strtok
分解字符串爲一組字符串。s爲要分解的字符串,delim爲分隔符字符串。首次調用時,s指向要分解的字符串,之後再次調用要把s設成NULL #include<iostream> #include<cstring> using names
原创 emacs 安裝auto-complete
emacs 安裝auto-complete ps: 大學就一直在玩emacs,自己也比較浮躁,emacs用的是走走停停的,工作UNIX 平臺下多又把emacs用起來了。emacs + makefile 完全就是一個強大的IDE。 今天發