除了此例外 还有class 和struct中,用来 new, node ,*link等,还有定义 link 函数返回class时
#include<iostream>
#include<vector>
#include<string>
#include<cstring>
#include<stack>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<functional>
#include<ctime>
#include<iomanip>
using namespace std;
int main()
{
typedef int state[9];
state in[100];
for(int i=0;i<9;i++)
for(int j=0;j<100;j++)
in[i][j]=i*j+1;
for(int i=0;i<9;i++)
{int k=0;
for(int j=0;j<100;j++)
{cout<<setw(3)<<in[i][j];k++;if(k%5==0) cout<<endl;}
}
}
typeof 小用法 (typeof int state【9】)
最新推荐文章于 2022-07-16 19:08:29 发布