Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 13, Problem 9PP
Program Plan Intro

Creation of program to construct classes to implement maze

Program Plan:

  • Define a class “Room” to define properties and methods.
    • Define constructors to create new instance.
    • Define a method “get_name()” to get name.
    • Define a method “get_adjacent_room()” to get adjacent room.
    • Define a method “link_room()” to assign value based on direction.
    • Define a method “get_available_directions()” to get available directions.
  • Define a main method.
    • Create new room instance using class.
    • Define connections in maze using “link_room()”.
    • Call method “get_available_directions()” to get available directions.

Blurred answer
Students have asked these similar questions
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning