Question: I am writing a C++ program that prints out a text file. The code works great but the punctuations on the text file are showing

I am writing a C++ program that prints out a text file. The code works great but the punctuations on the text file are showing up as unicode or ASCII Punctuation. What am I doing wrong?

I am writing a C++ program that prints out a text file.

Here is the .cpp

#include #include

using namespace std;

int main() { ifstream f("Text.txt");

if (f.is_open()) cout

}

Text file

####################### ## RULES ## #######################

Liars Dice is a multiplayer dice game with a minimum of two players and no upper limit on the number of participants. The goal is to make a correct guess or correctly call another player a liar. This article states the rules of Liars Dice as follows:

* The first player calls out two numbers: first, how many dice on the table he or she thinks have been rolled as a number between one and six. For example, player one could say two fives, which means he or she thinks there are at least two dice that are fives among all the players dice (including his or her own). o At this point, all players can accept what has been called out and move on to player two or call player one out, which will end the round and result in a winner or loser for the round.

* If player one calls out two fives, it does not matter whether player one has a five or not as bluffing is allowed in Liars Dice. It only matters if another player believes player one is bluffing and calls him or her out on it. In that instance, all dice must be revealed. If player one is correct, the player wins. If player one is wrong, then the player who called him/her out is the winner. The round is then over.

* If player ones call is accepted, then player two calls out a number. The first number must be greater than what player one called. For example, if player one called out two fives, player two must call out three or higher for his or her first number, so three fives, three fours, or four twos would all be acceptable. One five or two sixes would be unacceptable.

* Game play continues until someone is called out.

i rAs Dice is a multiplayer dice game with a minimum of two players and no upper limit on the number of participants. The goal is to make a correct guess or correctly call another player a liar. This article states the rules of LiarAs Dice as follows: The first player calls out two numbers: first, how many dice on the table he or she thinks have been rolled as a number between one and six For example, player one could s which means he or she thinks there are at least two dice that are fives among all the playersA dice (including his or her own) o At this point, all players can accept what has been called out and move on to player two or call player one out, which will end the round and result in a winner or loser for the round. If player one calls out otwo fives,o it does not matter whether player one has a five or not as bluffing is allowed in LiarEs Dice It only matters if another player believes player one is bluffing and calls him or her out on it In that instance, all dice must be revealed. If player one is correct, the player wins. If player one is wrong, then the player who called him/her out is the winner The round is then over. k If player oneEs call is accepted, then player two calls out a number. The first number must be greater than what player one called. For example if player one called out two fives,o playe two must call out three or higher for his ber so othree Or Four twoso would all be acceptable. Oone fiveo or Otwo sixeso WOU d be unacceptable Game play continues until someone is called out.Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!