at_yasu's blog

ロード的なことを

2007-08-04から1日間の記事一覧

適当な一文字を返す関数、C言語版

適当なAscii文字を返す関数。たまに使うからメモ書き static short _createRandomCharaFlag = 0; char createRandamCharactor () { char ch = 0x00; if (_createRandomCharaFlag == 0) { srand((unsigned)time(NULL)); _createRandomCharaFlag = 1; } while …

流石イタリア!!

記事:http://www.cnn.co.jp/fringe/CNN200708030011.htmlもう、どっから突っ込んだらいいのかわかりません。流石、イタリアです。 関連:ヘタリア *心のそこからヘタレイタリアをマンセーする*

頭痛ネタ

現在、Cocoaが標準でサポートしている色の種類一覧表があるページ : http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_context/chapter_3_section_4.html

保守メモ -- UNION --

C言語で、あたしがつい最近まで理解できなかった共用体の使用例。