Answer to Question #281519 in C++ for manal

Question #281519

complete code of Rush Hour is a game for one player, in which the player takes up the role of

a taxi driver who must collect money by dropping passengers to their

destinations


1
Expert's answer
2021-12-20T09:54:59-0500
#include <iostream>
using namespace std;


char gap[4];


void initgap(void)
{
    for (int i = 0; i < 4; i++)
    {
        gap[i] = ' ';
    }
}


void discribeTable(void)
{
    cout << '|' << gap[0] << '|' << gap[1] << '|' << gap[2] << '|' << gap[3] << '|' << endl;
}


int main(void)
{
    initgap();
    cout << "Empty Lot\n";
    discribeTable();


    gap[1] = '*';
    gap[2] = '*';


    cout << "Cars\n";
    discribeTable();


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog