2009-05-12から1日間の記事一覧

g++とgccの違い

C++

Leopardで空きメモリの量を知りたいと思って、 http://d.hatena.ne.jp/Christopher-727/20071110 を参考に(というか、そのままコピー)、下記のようなコードを書いてみる。 // 空きメモリ量を標準出力に表示する #include <mach/mach_init.h> #include <mach/host_info.h> #include <stdio.h> int main(int </stdio.h></mach/host_info.h></mach/mach_init.h>…