Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am finishing a slot machine app and need the faces of the slot machine to line up in columns. The problem is when I

I am finishing a slot machine app and need the faces of the slot machine to line up in columns. The problem is when I use "/t", the longer words don't tab to the same column as the rest. I need help on how to create columns using this code:

void SlotMachine::displayFaces() const { for (int i = 0; i < NUM_REELS; i++) { std::cout << reels[i].getFace() << " /t"; } std::cout << std::endl; }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Accounting Creating Value in a Dynamic Business Environment

Authors: Ronald Hilton, David Platt

10th edition

78025664, 978-0078025662

Students also viewed these Databases questions