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.

No comments:

Post a Comment

騎士團長殺人事件 --村上春樹

今年的日文小說看完了。篇幅很長,但規模不大,故事都繞著幾個主要的人物。情節裡有些超現實的場景,但最後卻讓人有點意猶未盡,因為有些想搞懂的疑點,在還沒講清之前就結束了。