<<< | Index | Problems to solve >>> |
Consider:
void print( Printer* pr ) { if ( pr->type == 'L' ) { // compose and send print job to lazer printer } else if ( pr->type == 'I' ) { // compose and send print job to ink-jet printer } else if ( pr->type == 'F' ) { // compose and send fax } }
<<< | Index | Problems to solve >>> |