阅读 程序
来源:互联网 发布:nginx http2 编辑:程序博客网 时间:2024/04/28 09:23
#include <iostream>using namespace std;int sub(int*);int main(){ int i, k; for (i=0; i<4; i++) { k=sub(&i); cout<<"sum="<<k<<'\n'; } cout<<"\n"; return 0;}int sub(int *s){ static int t=0; t=*s + t; return t;}
目测结果是 0 1 3 6
呵呵 一不小心蒙对了
0 0
- 阅读程序
- 阅读 程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 程序阅读
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- sql server Index collection
- leetcode之Evaluate Reverse Polish Notation
- 如何使用BSTR
- 如何看懂帕累托图
- C++迭代器基础介绍
- 阅读 程序
- Android网络通信框架Volley——自定义Request(Get、Post、文件上传)
- google 浏览器加载慢
- jQuery1.4.2中关于:not(:first)一个问题
- linux安装svn服务器
- java中String类中的replace方法
- 各大浏览器CSS3和HTML5兼容速查表
- 第15周项目3-(1)
- 最小生成树-普林算法(Prim)/克鲁斯卡尔算法(Kruskal)