Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CreateArray(int **&ptr) //產生9*8的指標陣列
- {
- int i , j;
- ptr = new int*[9];
- for ( i=0 ; i<9 ; ++i )
- ptr[i] = new int[8];
- }
- void SetData(int arr[], int index) //計算9*9乘法表
- {
- int i;
- for( i=1 ; i<=9 ; ++i )
- arr[i-1]=i*index;
- }
Advertisement
Add Comment
Please, Sign In to add comment