Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started