C
signed int -> 符号付...負数も扱える。 unsigned int -> 符号なし...正数のみ。その分大きい正数も扱える。 http://www9.plala.or.jp/sgwr-t/c/sec13.html
2>c:\visual studio 2010\projects\elasticsimulator\elasticsimulator\sim_data_io.cpp(26): error C2664: 'PathRemoveFileSpecW' : 1 番目の引数を 'char [1024]' から 'LPWSTR' に変換できません。(新しい機能 ; ヘルプを参照) 2> 指示された型は関連があ…
強制的にinlineしたい場合 __forceinline function_declarator; // Microsoft Specific__attribute__((always_inline)) function_declarator; // gcc http://msdn.microsoft.com/ja-jp/library/z8y1yy88.aspxhttp://stackoverflow.com/questions/8381293/how…
http://vipprog.net/wiki/prog_lang/cpp.html
In file included from ../SimulationBase/sim_vector.h:10:0, from sim_extern.h:7, from ElasticSimulator.cpp:2: ../SimulationBase/sim_util.h: In function 'const char* stristr(const char*, const char*)': ../SimulationBase/sim_util.h:101:39: wa…
http://uturo2.nevernothing.jp/mingw32/
typedef struct { int a; } sample_t; int main() { sample_t *p; p->a = 10; } 以上は間違い。 ポインタpはアドレスを覚えておくだけの変数なので、まだ値を代入する領域が用意されていない。 よって実行時エラーになる。 ○対処法 p = (sample_t *)malloc(s…