摘要: 阅读全文
posted @ 2016-07-11 15:54 今夜太冷 阅读(185) 评论(0) 推荐(0)
摘要: 用endl,std::endl, "\n"都不好用,不输出换行,怎么回事? 【解决方法】 If you're writing a text file, you shouldn't be using the binary flag.fout.open ("bodyfat.txt", ios::out | ios::app | ios::binary);Remove the ios::binary. ... 阅读全文
posted @ 2016-07-11 14:51 今夜太冷 阅读(480) 评论(0) 推荐(0)
摘要: string、wstring、cstring、 char、 tchar、int、dword转换方法(转) 最近编程一直头痛这集中类型的转化,明知都可以转却总是记不住,不断的上网查来查去,在这里小结一下。以备以后方便使用,当然有些方法可能不是最新的,或者最简单的,但是对于自己已经了解的使用起来应该方便的多: 1》string转wstring wstring s2ws(const st... 阅读全文
posted @ 2016-07-11 14:06 今夜太冷 阅读(4036) 评论(0) 推荐(1)