CSE 332 Class Structure Studio

CSE 332 Class Structure Studio - CSE 332 Studio Session on...

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

View Full Document Right Arrow Icon
CSE 332 Studio Session on C++ Class Structure These studio exercises are intended to give a more complete coverage of the structure of C++ classes and the major kinds of methods and features associated with them, and to give you experience using those concepts within the Visual C++ environment. In this studio you will again work in small groups. As before, students who are more familiar with the material are encouraged to help those for whom it is less familiar. Asking questions of your professor and teaching assistants (as well as of each other) during studio sessions is highly encouraged as well. Please record your answers as you work through the following exercises. After you have finished please post your answers to the required exercises, and to any of the enrichment exercises you completed, to the course message board as a reply to my posting titled “Class Structure Studio”. The enrichment exercises are optional but are a good way to dig into the material a little deeper, especially if you breeze through the required ones. Please make sure that as you work through these exercises that each member of your team has a chance to participate actively – one way is to take turns coding, looking up details, debugging, etc. PART I: REQUIRED EXERCISES 1. Find your team members in the studio area, sit down at/around and log in to one of the Windows machines, open up Visual Studio, and create a new Visual C++ Win32 Console Application project for this studio. Change the signature of the main function in the source file that Visual C++ generated to match the one that was specified in the lab assignments and in the lecture slides. Add a new header file and source file to your project, in which you will (respectively) declare and define classes and structs throughout this studio. Write down the names of the team members who are present (please catch up anyone arriving late on the work, and also add their name) as the answer to this exercise. 2. In the header file, declare a struct with two integer member variables. Do not add private, public, or protected specifications or any constructors, destructors, methods, or operators – the idea here is to understand the basic behaviors of a struct or class and then work through understanding additional features ( hint: don’t forget the semicolon after the closing brace, which C++ expects). In your main
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/03/2010 for the course CSE 332S taught by Professor Smart during the Spring '08 term at Washington University in St. Louis.

Page1 / 3

CSE 332 Class Structure Studio - CSE 332 Studio Session on...

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