cs161/assignments/assignment6/heat_diffusion.cpp
/*********************************************************************
 * ** Function: print_plate
 * ** Description: u2 is printed to the screen
 * ** Parameters: u2, sections
 * ** Pre-Conditions: u2 is calculated
 * ** Post-Conditions: u2 is printed
 * *********************************************************************/
print_plate
Description: u2 is printed to the screen
Parameters: u2, sections
Pre-Conditions: u2 is calculated
Post-Conditions: u2 is printed
print_plate Description : u2 is printed to the screen Parameters : u2 sections Pre - Conditions : u2 is calculated Post - Conditions : u2 is printed
void print_plate(float** u2, int sections) {
	fileWriter fw("heat2.dat");
	for(int i = 0; i < sections; i++) {
		for(int j = 0; j < sections; j++) {
			fw << u2[i][j];
			cout << setw(10) << u2[i][j] << " ";
		}
		cout << endl;
	}
	cout << endl;
}
void print_plate ( float * * u2 , int sections ) { fileWriter fw ( " " ) ; for ( int i = 0 ; i < sections ; i ++ ) { for ( int j = 0 ; j < sections ; j ++ ) { fw << u2 [ i ] [ j ] ; cout << setw ( 10 ) << u2 [ i ] [ j ] << " " ; } cout << endl ; } cout << endl ; }
** Function: print_plate
 ** Description: u2 is printed to the screen
 ** Parameters: u2, sections
 ** Pre-Conditions: u2 is calculated
 ** Post-Conditions: u2 is printed
** Function : print_plate ** Description : u2 is printed to the screen ** Parameters : u2 sections ** Pre - Conditions : u2 is calculated ** Post - Conditions : u2 is printed