摘要: 原题链接:Largest Number 题目描述: Given a list of non negative integers, arrange them such that they form the largest number.For example, give... 阅读全文
posted @ 2015-06-23 17:41 lanqiu5ge 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 本文转自: C语言itoa()函数和atoi()函数详解(整数转字符C实现) 介绍C语言提供了几个标准库函数,可以将任意类型(整型、长整型、浮点型等)的数字转换为字符串。int/float to string/array: C语言提供了几个标准库函数,可以将任意类型(... 阅读全文
posted @ 2015-06-23 14:20 lanqiu5ge 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 本文转自 这三种类型各有各的优点,比如CString比较灵活,是基于MFC常用的类型,安全性也最高,但可移植性最差。string是使用STL时必不可少的类型,所以是做工程时必须熟练掌握的;char*是从学习C语言开始就已经和我们形影不离的了,有许多API都是以cha... 阅读全文
posted @ 2015-06-23 14:09 lanqiu5ge 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 本文转自 http://blog.csdn.net/perfumekristy/article/details/7027678const char* 和string 转换const char*转换为 string,直接赋值即可 EX: const char* ... 阅读全文
posted @ 2015-06-23 11:15 lanqiu5ge 阅读(186) 评论(0) 推荐(0) 编辑