- 博客(7)
- 资源 (18)
- 收藏
- 关注
原创 检测是否为回文字符串 C++实现
检测是否为回文字符串 C++实现回文字符串,是一个正读和反读都一样的字符串,比如“level”或者“noon”等等就是回文字符串。检测原理:定义两个迭代器,一个指向字符串头部,一个是反向迭代器,指向反向头部,再逐字比较。源代码#include <iostream> #include <string>using namespace std;bool Test(const string &temp_st
2016-10-30 23:06:00 7116
原创 输出数组中第i大的数(非排序) C++实现
输出数组中第i大的数 C++实现注:需要C++11的支持。使用期望为线性时间的选择算法实现。此算法是以快速排序随机版为模型。源代码:#include <iostream> #include <vector> #include <random> #include <algorithm>using namespace std;vector<long long> Random() { static
2016-10-23 20:48:26 1070
原创 为数字增加千位分隔符 C++实现_使用locale库
为数字增加千位分隔符 C++实现注:需要C++11的支持。效果:1234567890->1,234,567,890使用locale库中的grouping函数实现。源代码:#include <iostream> #include <string> #include <locale> //本地化库using namespace std;struct my_numpunct : numpunct<ch
2016-10-23 20:35:48 4460
原创 判断是否为C++合法标识符
判断是否为C++合法标识符需要C++11的支持源代码#include <iostream> #include <regex> #include <string>using namespace std;bool Jugement(const string &temp_str) { regex reg("[_[:alpha:]][_[:alnum:]]*"); if (regex_matc
2016-10-18 15:28:53 7872
原创 计算该日为本年中的第几天 C++实现
计算该日为本年中的第几天需要C++11的支持源代码#include <stdexcept> #include <iostream> #include <string> #include <vector> #include <regex>using namespace std;struct Date { int year; int month; int day; };bool
2016-10-18 15:05:36 1836
原创 输出重复出现字符串中最多的一个 C++实现
输出重复出现字符串中最多的一个需要C++11的支持。源代码:#include <algorithm> #include <iostream> #include <string> #include <vector> #include <utility>using namespace std;void Count() { string temp_str, str; auto count_
2016-10-18 15:02:17 4321
原创 杨辉三角 C++实现
简短的杨辉三角C++实现思想∵\because (kn)=n!k!×(n−k)!\binom{k}{n}=\frac{n!}{k!\times (n-k)!} 又 (k+1n)=n!(k+1)!×(n−k−1)!\binom{k+1}{n}=\frac{n!}{(k+1)!\times (n-k-1)!} ∴\therefore (k+1n)=(kn)×n−kk+1\binom{k+1}{
2016-10-10 13:38:17 1684
Principles of Neural Design.pdf
2017-11-28
Neuronal Dynamics From Single Neurons to Networks and Models of Cognition.pdf
2017-11-28
Encyclopedia of Computational Neuroscience.pdf
2017-11-28
20 Years of Computational Neuroscience.pdf
2017-11-28
Dynamical Systems in Neuroscience.pdf by Izhikevich
2017-11-28
Theoretical Neuroscience Computational and..........pdf
2017-11-19
Python Machine Learning.pdf
2017-11-19
Python 科学计算 第2版.pdf 高清带书签 解压即可
2017-11-18
Introduction to Computer Networks and Cybersecurity
2017-11-11
C++数值算法_第三版(英文)_William.H.Press
2017-11-11
Advanced Metaprogramming in Classic C++
2017-11-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人