++


         

int ff( int a, int


(a) void print( int arr[][], int size );

(b) int ff( int a, int b = 0, int = 0 );

(c) void operate( int *matrix[] );

(d) char *screenInit( int height = 24, int width,

char background );

(e) void putValues( int (&ia)[] );

7.5

. .

(a) char *screenInit( int height, int width,

char background = ' ' );

char *screenInit( int height = 24, int width,

char background );

(b) void print( int (*arr)[6], int size );

void print( int (*arr)[5], int size );

(c) void manip( int *pi, int first, int end = 0 );

void manip( int *pi, int first = 0, int end = 0 );

7.6

.

void print( int arr[][5], int size );

void operate(int *matrix[7]);

char *screenInit( int height = 24, int width = 80,

char background = ' ' );

. .

(a) screenInit();

(b) int *matrix[5];

operate( matrix );

(c) int arr[5][5];

print( arr, 5 );

7.7

putValues( vector<int> ), 7.3.4, , list<string>. . :

( 2 )



"first string"

"second string"



main(), putValues() :

"put function declarations in header files"

"use abstract container types instead of built-in arrays"

"declare class parameters as references"

"use reference to const types for invariant parameters"

"use less than eight parameters"

7.8

-?   -? .