标签:int stream char ace 爬楼梯 tchar std [1] for
#include "stdafx.h"
#include<iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int a,b,c=1;
int m[8];
cout<<"输入台阶数";
cin>>a;
m[0]=1,m[1]=2;
for(b=2;b<a;b++)
{
m[b]=m[b-1]+m[b-2];
c++;
}
cout<<m[c];
}
标签:int stream char ace 爬楼梯 tchar std [1] for
原文地址:http://www.cnblogs.com/wangyulino6o6/p/6517002.html