Answered>Order 533

How would you go about calling out a player as a liar? Would you use bool liar = false, and then utilize an if else statement, such as IF(playerDice >= diceBet) {

liar == false;

std::cout << players[ ] << ” wins the round!”;

}

ELSE {

liar == true;

std::cout << players[ ] << ” is a liar! You loose the round.”;

}

Here is the code I have thus far:

#include “stdafx.h”

#include <iostream>

#include <ctime> // for time

#include <cstdlib> // for srand and rand

int main()

{

 
"Not answered?"
Get the Answer