标签:include
#include <iostream> #include <vector> void factorial(std::vector<int>&); int main(int argc,char **argv) { std::vector<int> vi{1,2,3,4}; factorial(vi); } void factorial(std::vector<int> &vi) { static auto i=0; if(i<vi.size()) { std::cout<<vi[i++]<<std::endl; factorial(vi); } }
本文出自 “奔跑的驴” 博客,请务必保留此出处http://amgodchan.blog.51cto.com/9521586/1567734
标签:include
原文地址:http://amgodchan.blog.51cto.com/9521586/1567734