// Parameter assignment for CS 330 - Spring 2005 // Your name and comments go here #include "/home/grader/katz330/labs/param/tvector.h" #include "/home/grader/katz330/labs/param/tmatrix.h" #include using namespace std; // This is an example macro - you may delete it when you // have created your own macro // Remember that macros substitute the *text* of // the parameters into the code // use backslash as the *last character* of a line // to continue the macro to the next line // there can be no space between the name and open paren #define exMacro(in1, in2, out1) {\ int temp;\ temp = in1 * in2;\ out1 = temp;\ } // Your Jensen's Device macro goes here // shows how to use the example macro void useMacro( ) { int harpo = 4; int groucho = 7; int chico = 0; exMacro(harpo + groucho, groucho + harpo, chico) cout << "chico's number is " << chico << endl; cout << "Was the multiplication done first?" << endl; } int main( ) { useMacro( ); return 0; }