摘要:
昨天一个同学来公司面试,是我推荐的。面试官是我的两个同事,他们出了一道题,将一个float转成string。我的那个同学没有写出来,回来后问我的想法,我花了几分钟的时间,粗略写了一下,代码如下:#include #include using namespace std;string flot2str(float f){ if (f == 0) return "0"; string s; int ... 阅读全文
posted @ 2011-12-22 22:41
小橋流水
阅读(1905)
评论(0)
推荐(0)
浙公网安备 33010602011771号