第15周 程序阅读五
来源:互联网 发布:mysql data free 编辑:程序博客网 时间:2024/05/13 16:24
#include <iterator>#include <algorithm>#include <functional>#include <iostream>#include <vector>using namespace std;class Angle{ int degrees;public: Angle(int deg) : degrees(deg) {} int mul(int times) { return degrees *= times; }};int main(){ int x[] = {1, 2, 4, 5, 8}; vector<Angle> va; for(int i =10; i <= 50; i += 10) va.push_back(Angle(i)); transform(va.begin(), va.end(), x, ostream_iterator<int>(cout , " "), mem_fun_ref(&Angle::mul)); cout << endl; return 0;}
0 0
- 第15周 程序阅读五
- 第五周阅读程序五
- 第六周阅读程序五
- 第15周程序阅读(1)
- 第15周项目2-阅读程序
- 第15周项目2.1 阅读程序
- 第15周 项目2 阅读程序
- 第15周项目2-阅读程序
- 第15周 项目2-阅读程序
- 第15周项目2-阅读程序
- 第15周-阅读程序(1)
- 第15周-阅读程序(2)
- 第15周-阅读程序(3)
- 第15周-阅读程序(4)
- 第15周-阅读程序(5)
- 第15周-阅读程序(6)
- 第15周阅读程序(1)
- 第15周阅读程序(2)
- android中Webview与javascript的交互(互相调用)
- 第一份csdn博客
- swift 基础之UIDynamicAnimation
- Android和IOS录制mp3语音文件的方法
- MFC多线程的创建
- 第15周 程序阅读五
- Android返回不退出
- Stdio快捷键
- 第十四周项目一排序函数模板
- MySQL设计规约
- NYOJ-769乘数密码,逆元解法;
- Web Service 的工作原理
- iOS监听键盘上升和降落
- 第16周 阅读程序 (1)