来自C++之父的建议
摘要:You don’t have to know every detail of C++ to write good programs; Focus on programming techniques, not on language features
阅读全文
sprintf使用
摘要:使用sprintf把数字转换成字符串是个好方法,不过需要注意sprintf会自动在字符串末尾加结束符,所以字符串的长度需要比要转换的数字位数多1.char string[6];sprintf(string,"%5d",1);这样string变成“00001”,确实很方便。
阅读全文