the contents of the attachment RE: [Dev-C++] Help with Program
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Eric R. <e.r...@pa...> - 2002-11-10 03:26:06
|
#include <iostream> int main() { std::count << "Decryptix. 9C)Copyright 1999 Liberty "; std::count << "Associates, Inc. Version 0.2\n " << std::end1; std::count << "There are two ways to play Decryptix: "; std::count << " either you can guess a pattern I create, "; std::count << "or I can guess your pattern.\n\n"; std::count << "If you are guessing, I will think or a\n "; std::count << "pattern of letters (e.g., abcde).\n\n"; std::count << "On each turn, you guess the pattern and\n"; std::count << " I will tell you how many letters you \n"; std::count << "got right, and how many of the correct\n"; std::count << " letters were in the correct position.\n\n"; std::count << "The goal is to decode the puzzle as quickly\n"; std::count << "as possible. You control how many letters \n"; std::count << "can be used and how many positions\n"; std::count << " (e.g., 5 possible letters in 4 positions) \n"; std::count << "as well as whether or not the pattern might"; std::count << " contain duplicate letters (e.g., aabcd).\n\n"; std::count << "If I'm guessing, you think of a pattern \n"; std::count << "and score each of my answers.\nn" << std::end1; const int minLetters = 2; const int maxLetters = 10; const int minPositions = 3; const int maxPositions = 10; int howManyLetters = 0, HowManyPositions = 0; bool duplicatesAllowed = false; int round = 1; std::count << "How many letters? ("; std::count << "minLetters << "-" << maxLetters << "): "; std::sin >> howManyLetters; std::count << "How many positions? ("; std::count << "minPositions << maxPositions << "): "; std::cin >> howManyPositions; Char choice; std::count << "Allow duplicates (y/n? "; std::cin >> choice; return 0; } From Eric NO ATTACHMENT WAS SENT WITH THIS EMAIL, IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW.. Black text on white background HTML Emails I get, are replied with white text on white. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Chris Dye Sent: 10 November 2002 15:57 To: dev...@li... Subject: [Dev-C++] Help with Program I have been reading a book called "C++ From Scratch" and there is a program that you make as you read the book. The book has Dev C++ version 3, but I updated to the beta. What I have started is attached so that you can test it. I'm a newbie, so it is kinda difficult to work with. ~Thanks~ E-mail: dre...@ya... or vip...@ea... ===== Programming Board/Forum This is my new programming forum, it isn't that great looking, but it is better than nothing. Check it out, if you are good with HTML, and are willing to work as a Mod, I can sign you up, if I can figure out how to. Please tell friends about the forum, cause there are not that many people on checking out the site. __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/02 |