摘要: #include <iostream>#include <vector>#include <numeric> int main() { double a[]={1, 3, 5.4}; double b[]={1, 5, 7}; std::vector<double> v_a, v_b; for(si 阅读全文
posted @ 2018-08-25 15:01 东宫得臣 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include <string>#include <iostream>#include <stack> int main() { std::string str="hello"; std::stack<char> reverse_str; std::cout<<str<<std::endl; fo 阅读全文
posted @ 2018-08-25 13:32 东宫得臣 阅读(526) 评论(0) 推荐(0) 编辑
摘要: template <class T1, class T2>double ManhattanDistance(std::vector<T1> &inst1, std::vector<T2> &inst2) { if(inst1.size() != inst2.size()) { std::cout<< 阅读全文
posted @ 2018-08-25 12:56 东宫得臣 阅读(1723) 评论(0) 推荐(0) 编辑