cs162/assignments/assignment1/magic.cpp
/*********************************************************************
 * ** Function: check_num_args
 * ** Description: This function checks to make sure there are two command line arguments given when executing
 * ** Parameters: int argc
 * ** Pre-Conditions: Program has been executed
 * ** Post-Conditions: Rest of program runs
 * *********************************************************************/
check_num_args
Description: This function checks to make sure there are two command line arguments given when executing
Parameters: int argc
Pre-Conditions: Program has been executed
Post-Conditions: Rest of program runs
check_num_args Description : This function checks to make sure there are two command line arguments given when executing Parameters : int argc Pre - Conditions : Program has been executed Post - Conditions : Rest of program runs
void check_num_args(int argc) {
	if(argc != 3) {
		cout << "You must enter two command line arguments!" << endl;
		exit(0);
	}
}
void check_num_args ( int argc ) { if ( argc != 3 ) { cout << " " << endl ; exit ( 0 ) ; } }
** Function: check_num_args
 ** Description: This function checks to make sure there are two command line arguments given when executing
 ** Parameters: int argc
 ** Pre-Conditions: Program has been executed
 ** Post-Conditions: Rest of program runs
** Function : check_num_args ** Description : This function checks to make sure there are two command line arguments given when executing ** Parameters : int argc ** Pre - Conditions : Program has been executed ** Post - Conditions : Rest of program runs