Working a homework programming assignment in C++, C/C++ Programming

I am working on a program that allows a player to play a game against the computer. In this game the player can only chose to draw 1, 2, or 3 toothpicks. How do I make restrictions so that when the player doesn''t choose 1, 2, or 3 it will quit the game?
Posted Date: 9/23/2012 3:50:11 PM | Location : United States







Related Discussions:- Working a homework programming assignment in C++, Assignment Help, Ask Question on Working a homework programming assignment in C++, Get Answer, Expert's Help, Working a homework programming assignment in C++ Discussions

Write discussion on Working a homework programming assignment in C++
Your posts are moderated
Related Questions

Literals (Constants) Constants are data storage locations whose address is not accessible for the user. Their value is not altered during the course of the program. Literal

What is the role of && operator in a program code? - && is also referred to as AND operator. - When this operator is used, all conditions specified should be TRUE before nex

Derived Data Type: Array is derived data type to store large collection of data of only one data type. int mark[100]; char names[25]; Function: will be discussed early

a program that declares and prompts the user to enter two integer and performs the five arithmetic operations

Converting Base Type to Class Type (char to string)   class String { char *name; int length; public: String(void) {length =0; name = new char[length+1];

how to do 2, 4, 8 associativity

The Switch Construct The switch statement is a multi-way decision-making construct that tests an expression matches one of a number of constant values, and branches accordingly


What is Union? Intimately associated with the structure is the union which as well contains multiple members. Unlike a structure but the members of a union share the same stora