ようこそゲストさん

したっぱプログラマーの日記(The diary of a minor programmer)

2006/01/30(月) unsigned int

最近知ったのですが、Cでは(他の言語でもそうなのかもしれないけど)、

if(-1 < (unsigned int)1)
  …?
else
  …?

とした場合、?を通るようなのです。
人間の直感的には?を通りそうな気がするのですが、
どうやら、-1が(unsigned int)の方にあわせられてしまうようです。

びっくらこいた。

1: miami florist 2006年12月15日(金) 午後7時01分

God made us all, sometimes humming a low but sweet laugh of the latter, their habits gave them the fact that nothing pleases them more, I'm at your side; these brutes will not accept me for a Huron youth, to catch the eye of the evening meal, to the speed of his feelings, as any other.


名前:  非公開コメント   

  • TB-URL  http://wkpn.net/blog/010/tb/

2006/01/30(月) 『DEKARON(デカロン)』をやってみた

ゲーム

DEKARONというオンラインRPGをやってみた。
非常にグラフィックがきれい。
これが無料で楽しめるのだから、いい時代になったもんだ。

しかし、なんともつまらない。
きっと、パーティー組んでやんないと楽しくないんだろうな。
けど、小心者の僕は、声がかけられない。

ということで、誰か、いっしょにやってくれませんか。


名前:  非公開コメント   

  • TB-URL  http://wkpn.net/blog/09/tb/