Programming_C のバックアップ(No.3) - アールメカブ

アールメカブ


Programming_C のバックアップ(No.3)


_ strtokとchar_strtok

_ マルチバイト文字とワイド文字の変換wcstok_wcstombs_etc

_ stringオブジェクトをprintfで表示

よく忘れてはまる.pa は map <string,int> ma のイテレーターとする

printf("word = %s: freq = %d\n", 
        (pa->first).c_str(), pa->second );

_ mapコンテナから要素を削除する

_ malloc再考

_ C_N-gram

_ C_日本語一文字を取得

  • * gcc-4.0だと、エンコーディングを指定してコンパイルする ことができる.
    $ gcc -finput-charset=Shift_JIS hoge.c -o hoge.o

_ hidden_C_N-gram

_ hidden_C_CharCode

_ ディレクトリ操作dirent.h

_ strtokとmap

_ stringとchar

_ extern

http://osdir.com/ml/gnu.mingw.user/2002/msg03869.html

"__declspec(dllimport)" and "extern __declspec(dllexport)" both imply a declaration, but that "__declspec(dllimport)" causes the linker to look for the __imp symbol in an import library, while "extern __declspec(dllexport)" declares a function that must be defined in the program's source (no __imp prefix).

設定されている環境変数を表示するには、printenvコマンドを

_ -fPIC は共有ライブラリ (*.so)を作成するオプション

_ ライブラリの構築*

_ Boost_regex

_ Cでメモリを節約して文字列を読む

_ C_INCLUDE_PATH

_ ヘッダファイルの場所

_ sizeofについて

_ const_castの使い方

_ C++とヘッダ

_ Cで文字列を空にする

_ Cで動的に配列を作成する

_ C++での正規表現

_ CPP_file_tokenize

_ CPP_vectorの使い方

_ CPP_mapの使い方

_ Prog_Mecab 和布蕪の出力処理

_ cin関数でのオーバーフロー