![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 77
仰望-NLQ
simple
展开
-
C++ 学习 小细节 01数组指针篇
1.数组定义和初始化: 数组的维数必须使用值大于等于1的常量表达式定义。只能包含整型字面值常量、枚举常量(枚举成员本身是一个常量表达式)或者用常量表达式初始化的整型const对象。非const变量以及到运行阶段才能知道其值得const变量都不能用于定义数组的维数。 const unsigned size1 = 100; int size2 = 10; const unsigned size原创 2013-10-20 21:20:35 · 629 阅读 · 0 评论 -
c++排序系列之插入排序
1.前言 2.插入排序(insert sorting) 3.细节问题 4.原创 2014-04-26 15:56:10 · 870 阅读 · 0 评论 -
Valid Number(验证字符串是否表示数字)
Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true原创 2014-05-14 13:30:54 · 3505 阅读 · 0 评论 -
Two Sum
原题链接:http://oj.leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t原创 2014-05-14 15:01:37 · 596 阅读 · 0 评论