// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 1170, Spring 2009 // Lab 15: Header file for Lab 15 // Date: January, 2009 // Comment: The code here is meant to be revised. // ***************************************************************** #include using namespace std; #ifndef LAB_15_HEAD_H #define LAB_15_HEAD_H //This function take two value parameters and try to samp them void fun_1(int x, int y) { //local variable declaration int tmp; //swamp x and y tmp=x; x=y; y=tmp; //stop return; //no value is returned here } //This function take two reference parameters and try to samp them void fun_2(int & x, int & y) { //local variable declaration int tmp; //swamp x and y tmp=x; x=y; y=tmp; //stop return; //no value is returned here } #endif