摘要:
#include<iterator>#include<iostream>#include<algorithm>using namespace std;double square(double x){ return x*x;}int main(){ transform(istream_iterator 阅读全文
摘要:
#include<iostream>#include<vector>#include<iterator>#include<algorithm>#include<functional>using namespace std;int main(){ const int N=5; vector<int>s 阅读全文
摘要:
#include<iostream>#include<cstdlib>using namespace std;struct Student{ int id; float gpa;};template<class T>class Store{ private: T item; bool haveVal 阅读全文
摘要:
#include<iostream>using namespace std;template<class T>void outputArray(const T *array,int count){ for(int i=0;i<count;i++) cout<<array[i]<<" "; cout< 阅读全文