473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Word Finder Game in c++/ PROGRAMMING(GAME)

I am new in C++ can you help me with my codes.
we need to create a game that has a level, timer and high scores those are the general requirements.
and this is what I have so far. and I think it is wrong.
can you please help me. This is for my finals in programming.

Expand|Select|Wrap|Line Numbers
  1. //WORD FINDER
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5. int main()
  6.  string first, second, third, fourth, fifth;
  7.  
  8.  cout<<"               WORD FINDER GAME"<<endl<<endl;
  9.  cout<<"Find the 5 words in 30 seconds."<<endl;
  10.  cout<<"Hint:FOOD!"<<endl<<endl;
  11.  cout<<"  R  H  A  M  E  I  Z"<<endl;
  12.  cout<<"  I  O  N  Y  N  J  Z"<<endl;
  13.  cout<<"  C  N  P  J  D  W  U"<<endl;
  14.  cout<<"  E  E  S  O  U  P  C"<<endl;
  15.  cout<<"  M  Y  E  C  M  X  M"<<endl;
  16.  cout<<"  U  C  H  E  E  S  E"<<endl;
  17.  cout<<"  N  F  D  U  X  V  N"<<endl;
  18.  
  19.  cout<<"Enter a word: ";
  20.  cin>>first;
  21.  
  22.  if((first=="honey") || (first=="ham") || (first=="cheese") || (first=="rice") || (first=="soup"))
  23.  {
  24.   cout<<"Enter a word: ";
  25.   cin>>second;
  26.  }
  27.  if((first=="honey") || (first=="ham") || (first=="cheese") || (first=="rice") || (first=="soup"))
  28.  {
  29.   cout<<"Enter a word: ";
  30.   cin>>third;
  31.  }
  32.  
  33.  if((first=="honey") || (first=="ham") || (first=="cheese") || (first=="rice") || (first=="soup"))
  34.  {
  35.   cout<<"Enter a word; ";
  36.   cin>>fourth;
  37.  }
  38.  
  39.  if((first=="honey") || (first=="ham") || (first=="cheese") || (first=="rice") || (first=="soup"))
  40.  {
  41.   cout<<"Enter a word: ";
  42.   cin>>fifth;
  43.  }
  44.  if((first=="honey") || (first=="ham") || (first=="cheese") || (first=="rice") || (first=="soup"))
  45.   cout<<"You found the 5 words!";
  46.  
  47.  
  48.  
  49.  
  50.  return 0;
  51. }
Sep 16 '13 #1
1 6649
weaknessforcats
9,208 Expert Mod 8TB
Actually, I haven't the time to debug your code and review your design. Debugging is a necessary part of development.

There is no way I can know if this code is right or wrong.
Sep 17 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: gdogg1587 | last post by:
Greetings. I'm working on a program that will "descramble" words. Think of a word scramble game where there is a list of characters, and several blank spaces to denote the word(s) that you are...
1
hpbutterbeer
by: hpbutterbeer | last post by:
We have a Machine Project and my brain is currently in a clouded state. Sorry, I'm just a beginner in C Programming... Text twist is a windows game whose main objective is to form words out of the...
0
by: raypjr | last post by:
Hi everyone. I need a little help with some parts of a word guessing game I'm working on. I have some parts done but unsure about others and could use a little advice. Any help is very much...
3
by: wbmca | last post by:
I am new to C++ and need help. I'm trying to create a program in which a user is prompted to enter a character and an integer. The program will attempt to find words that begin with the character and...
8
by: Cjllewey369 | last post by:
I am working on learning Python out of a book called Python Programming for the Absolute Beginner. Right now I am working on a challenge at the end of one of the chapters. During the chapter i was...
8
by: Summercool | last post by:
somebody who is a regular expression guru... how do you negate a word and grep for all words that is tire but not snow tire or
1
by: Netwatcher | last post by:
i have a problem with the following (some vaiation of a word quiz game) (ignore first group of hashs) import random WordTank='' GuessTank='' GuessList=12 GuessWords=...
0
KevinADC
by: KevinADC | last post by:
This is not a "Howto" article but a complete script. I wrote this script a few years back for a competition on another forum and its really just sat around collecting dust since then. Ask...
3
tpgames
by: tpgames | last post by:
I do not understand why this code does not work? It will show ????? for the word length, but will does not actually access the individual letters within the word list. I enter the vowels as guesses,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.