print.h
来自「一个自己定义的数组外包装」· C头文件 代码 · 共 19 行
H
19 行
#ifndef _PRINT_H_
#define _PRINT_H_
#include <iostream>
template<class T>
inline void PRINT_ELEMENTS(const T & coll,const char* optcstr=" ")
{
typename T::const_iterator pos;
std::cout<<optcstr<<std::endl;;
for(pos=coll.begin();pos!=coll.end();++pos)
{
std::cout<<*pos<<' ';
}
std::cout<<std::endl;
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?