2008/12/26

落葉

PB231713 (by plateaukao)
郡山。日本

****

心情不好
程式也寫不好
什麼都不好

****

It's been a long time that I did not code something serious (maybe.. never serious though). Today, I try to write a small program that can read in a file, find some string I am looking for, replace them into other strings, and write back to the file. Sounds like a simple task, huh? But it took me a lot of time handling I/O stuff. At first, I tried to use the primitive fopen that comes with c standard library. However, I am too lazy to use gets and puts, let alone comparing strings by myself.  So I turned to look for c++ solutions. Obviously, it's much easier to use iostream instead of fopen. Maybe, I should find some time to repolish my basic skills of c++ programming because it's always far from being solid for me.

沒有留言:

張貼留言

乩童警探 一二集

接連看了兩集。第一集還算新鮮,到了第二集就看得比較慢了。一來,劇情雖然常會提到乩童,但真的跟乩童又沒有什麼關係。第二集後半大概就猜出是怎麼一回事了,但還是很享受在作者解釋的過程。只是前面舖陳有點久,而且人物有點多,再加上我是斷斷續續的看,看到後來都快忘了誰是誰,或是誰曾經出過什麼...