2008-12-01から1ヶ月間の記事一覧

回顧

別に解雇にかけたわけではない。そこまで不謹慎ではない。 今年1年を回顧してみる。MASAに習った。やってみたくなった。 March はてなに切り替え C++を始めて間もなく挫折 ゲームヘル2000のオフに飛び入り GBA開発を宣言して放置 April Twitterを始める。 高…

これは うごかない

c++

#include <stdlib.h> #include <iostream> #include <string> #include <vector> using namespace std; class Test{ private: bool m_bool; vector<bool> m_vector; public: Test(){ m_bool = false; m_vector.push_back(true); m_vector.push_back(false); m_vector.push_back(true); } bool& testbool</bool></vector></string></iostream></stdlib.h>…

犬に砂をかける

全然コンピュータっぽくなくて、ひょっとしたら厨房的な話。 厨房的な話をここに書くのはポリシー(笑)に反するのだけれど。 聞いた実話を少し延長して書いてある。 状況設定 Aさんが犬と散歩している。公園の砂場のそばを歩いていると、 そこで砂遊びをし…

JOI2008-2009をC++で解いてみた4問目

#include <iostream> #include <fstream> #include <vector> #include <string> #include <algorithm> #include <stdlib.h> using namespace std; void outHistory(vector<int>* history_){ vector<int>::iterator iter; for(iter=history_->begin(); history_->end() != iter; iter++){ cout << *iter << "<"; } cout << e…</int></int></stdlib.h></algorithm></string></vector></fstream></iostream>

JOI2008-2009をC++で解いてみた2問目

c++

#include <iostream> #include <fstream> #include <stdlib.h> #include <algorithm> #include <vector> using namespace std; class Result{ vector<int> scores; public: Result(){ for(int i=0; i<4; i++){ scores.push_back(0); } } void append(int n){ scores.pop_back(); scores.push_back(n); sort(scores.</int></vector></algorithm></stdlib.h></fstream></iostream>…

JOI2008-2009をC++で解いてみた1問目

c++

#include <iostream> #include <fstream> #include <stdlib.h> using namespace std; class Man{ private: int m_arrival[3]; int m_leave[3]; public: Man(string* data_){ int times[6] = {-1, -1, -1, -1, -1, -1}; decode(times, data_); m_arrival[0] = times[0]; m_arrival[1] = tim</stdlib.h></fstream></iostream>…

PythonからC++への乗り換えを余儀なくされる予定のある人に役立つかもしれない情報

http://oshiete1.goo.ne.jp/qa3673750.html listとvectorの違いについてhttp://www.cppll.jp/cppreference/index.html c++標準リファレンスについてstringにはsplitがないので要自作

JOI結果

さーせんwww俺Pythonなんですwww Cよくわかんないっすwwまさか通るとは思わなかった。懇親会目的で行こうかなぁ。 っていうかC勉強しないと。

継承の基本

メモ。 import std.stdio; class A{ this(){ writefln("A class"); } void process(){ writefln("A Process"); } } class B:A{ this(){ super(); writefln("B class"); } void process(){ super.process(); writefln("B Process"); } } int main(){ B btest …

イミフ

劣化dHell2作ってるよ

とりあえず透過色が設定できるスプライト作ったからなんか作れるんじゃないだろうか。参考にさせていただきました。勝手に。すみません。コピペ分は後で調べます。 http://d.hatena.ne.jp/wang-zhi/20070316/1173972037次は基本図形描画かなぁ。gfx? それと…

Todo

桜のはなびらをとるゲームにIKが使えるかどうか検討する D+SDL+OpenGLのライブラリ作る リフティングゲー作る 散歩にマラソンをつける 散歩をParaFla!でFlash化する 桜のはなびらをHD化とかおもったけどやっぱやめようか悩む JOIときなおし 結構多いなー

JOIやってきた

JOI(日本情報オリンピック?)の大会に参加してきたよ!明日期末だけど!Python「再帰深すぎんだよヴォケ」 Python「そんな覚えられるかヴォケ」すいませんでした。 一応私の解答置いときますね。 つhttp://ashiato45.hp.infoseek.co.jp/joi2008_ashiato45.z…

でっていう

Molybdenumについて

とりあえずグラ変えたい。と、ま〜ぶる見て思った。 動きに物理要素が皆無。現実的さから浮きすぎてる。問題かどうかはまだわからない。グラ変えてから考える。 操作の簡単さは変えたくない。 フィールド移動の重さは直したい。あれはひどい。 あとIRCとかで…

メモ

D SDL

http://www5.atwiki.jp/yaruhara/pages/74.html ここを参考にさせていただきました。 パスうんうんがよくわかんなかったので暫定的にこんな感じに。 そのうちいちいちコピーしなくていいように整えるつもりです。 でなければPythonで「dsdlcopy」とかいうコ…

冬季ヘリンピック開幕

http://www5.atwiki.jp/yaruhara/pages/1.html ゲームの点数を競うヘリンピックが開催されるようです。 みんな遊ぶんだ!!! 私は散歩というタイトルのゲームで参加しています。

すごいこと思いついた

ごめんなんでもない。

MGS:ノーアラート:ステルス迷彩→ゲームの崩壊→嬉しい かいてんパティシエ:シークレット:アナザーエンディング→嬉しい あとなにか