小白!各位大神帮帮忙!麻烦了!
#include"stdafx.h"
#include
using namespace std;
void print(int w)
{for(int i =1;i<=w;i++)
{ for(int j = 1;j<=1;j++)
cout<<i<<"";
cout<<endl;
}
}
int main()
{print 5;}
这个函数过程是怎么样的?
为什么结果会是
1
22
333
4444
55555
for(int j = 1;j<=1;j++) 这句话的作用是什么?