C++
文章平均质量分 68
jimodeyangguang
这个作者很懒,什么都没留下…
展开
-
Solution to error: ‘_1’ was not declared in this scope under C++11 standard
The problem is when I compiled the following program, the compiler showed me an error like this " error: ‘_1’ was not declared in this scope". 1 #include 2 #include 3 #include 4 #includ原创 2013-05-14 10:13:48 · 3445 阅读 · 0 评论 -
Algorithmic Implementation series(8) Implementation of Counting_Sort
Compiler: gcc 4.7.3C++ Standard: C++0xOS: CentOS 6.3 x86 1 #include 2 3 using namespace std; 4 5 void Counting_Sort(unsigned uaa[], const size_t size_of_uaa, 6原创 2013-06-17 21:01:02 · 403 阅读 · 0 评论 -
Algorithmic Implementation series(7) Implementation of Randomized_Quick_Sort
Compiler: gcc 4.7.3C++ Standard: C++0XOS: CentOS 6.3 x86 1 #include 2 #include 3 4 using namespace st原创 2013-06-17 10:24:17 · 363 阅读 · 0 评论 -
Algorithmic Implementation series(5) Implementation of Heap_Sort
compiler: gcc 4.7.3C++0XOS: centos 6.3 x86 1 #include 2 3 using namespace std; 4 5 //Getting the原创 2013-06-15 10:14:14 · 424 阅读 · 0 评论 -
Algorithmic Implementation series(6) Implementation of Quick_Sort
Compiler: gcc 4.7.3C++ Standard: C++0xOS:CentOS 6.3 x86 1 #include 2 3 using namespace std; 4 5 //swap the ith element and the jth element in an array 6 void swap_elements(int原创 2013-06-16 10:08:08 · 381 阅读 · 0 评论 -
Algorithmic Implementation series(4) Implementation of Maximum Subarray problem(O(nlgn) and O(n))
Complier: gcc 4.7.3C++0x(1) Time Complexicity: O(nlgn) 1 #include 2 #include 3 4 using namespace std; 5原创 2013-06-13 10:35:43 · 610 阅读 · 0 评论 -
Algorithmic Implementation series(1)——Implementation of Insertion_sort
Complier: gcc 4.7.3 Std: c++0xHi, everyone. I'd like to start my algorithmic implementation series in which I implement the algorithms based on the pseudo codes in 《Introduction to Algorithms》(3rd原创 2013-06-10 21:19:50 · 458 阅读 · 0 评论 -
Algorithmic Implementation series(3) Implementation of Merge_Sort
Compiler: gcc 4.7.3C++11 1 #include 2 3 using namespace std; 4 5 void MERGE(int ia[], const size_t p, con原创 2013-06-10 21:24:02 · 441 阅读 · 0 评论 -
Algorithmic Implementation series(2)——Implementation of Selection_sort
Compiler: gcc 4.7.3C++11 1 #include 2 3 using namespace std; 4 5 template 6 void show(T &t) { 7 for(auto i : t) { 8 cout 9 } 10 } 11 12 13 v原创 2013-06-10 21:22:13 · 416 阅读 · 0 评论 -
linux 安装jsoncpp
原文地址:http://itchen.blog.51cto.com/343363/704268#tar -zxf scons-2.1.0.tar.gz #cd scons-2.1.0 #python setup.py install #tar -zxf jsoncpp-src-0.5.0.tar.gz #cd jsoncpp-src-0.5.0 #scons platform=lin转载 2013-06-25 14:26:56 · 495 阅读 · 0 评论