c109f06t1 - CSE 109 Test1 Wednesday 4 October 2006...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 109 Test1 Wednesday 4 October 2006 >>>>>>>>>>>>>>>>>>>>>>>>>>>SUGGESTED ANSWERS<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 1. Susan Bytesenbits has designed classes A, B, C, and D, whose declarations are below, storing the declarations in the corresponding files a.h, b.h, c.h, and d.h. She stored the corresponding code, which I have indicated in comments, in corresponding .cc files a.cc, b.cc, c.cc, and d.cc. She stored the main program, also show below, in p.cc. Write a makefile for Susan. Include a command for "cleaning up" the directory where the files are loocated. The executable file should be stored in the file "BytesenB". e int main(){D a; } //not much of a program. She will add more later class A{int j; void x(); /* void x{} also not much of a function */ }; class B{ A a; void t(); /* void t{a.x();} */ }; class C{ B b; void q(); /* void q{b.t();} */}; class D{ C c; void v(); /* void v{c.q();} */}; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> OPT= -c -Wall -Werror
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/09/2008 for the course CSE 109 taught by Professor Kay during the Spring '08 term at Lehigh University .

Page1 / 2

c109f06t1 - CSE 109 Test1 Wednesday 4 October 2006...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online