// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 1170, Spring 2009 // Lab 14: Header file for Lab 14 // Date: January 12, 2009 // Comment: The code here is meant to be revised. // ***************************************************************** #include using namespace std; #ifndef LAB_14_HEAD_H #define LAB_14_HEAD_H //this function shows the user menu void showMenu() { cout< "; cin>>x>>y; //find the sum sum=x+y; //show the sum cout< "; cin>>x>>y; //find the sum sum=x+y; //return sum return sum; //sum is returned here } //this is a value-returning function with parameters //it gets two numbers from the user and returns the sum int fun_4(int x, int y) //x and y are two parameters { //local variable declaration int sum; //find the sum sum=x+y; //return sum return sum; //sum is returned here } #endif