Thread: C++ Programming Assignment Help

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    11

    Question C++ Programming Assignment Help

    I was wondering if any of you experienced C++ chaps could help me out with this project me and my friends are trying to do to strengthen are skills. We are mere beginers. If You can figure out the code to make this program work it would be greatly appreciated. Here are the instructions ( PS: If you could you abundent and explicit comments to instruction how the different parts function that would benefit us even more we are such beginners, thanks mates)


    File Processing

    Make a Mad Libs party game. The leader has the text of a short story with a few missing words in it. The missing words are tagged by their function [noun], [verb], [place], etc... For example:

    It was a [adjective] summer day.
    Jack was sitting in a [place].

    The leader examines the text and prompts the players for the missing words:

    Please give me a/an:
    adjective
    place
    etc...

    He then reads the text with the supplied words inserted into their places.

    Write a program that acts as the Mad Libs leader. It should prompt the user for a file name (or display a menu of available files), read the text from the chosen file, find the tags for the missing words, prompt the user for the words, and, finally, find the completed text in another file. You MUST use apstring, and, at least 2 funstions. In addition, use the <fstream.h> header file for the class ifstream. You will need to use the open, close, eof, and fail functions.

    The files that i use will include the following: Holdiday, Noun, Verb, Food, Person, Adjective. All words tagged by [ ].

    Good Luck and Thanks!

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    This isn't a do your homework for you forum, write something, and when you get stuck, read the tutorials, then search the forums, then come post your code that has you stumped and we will help you. What I don't get is why would someone take one of these classes then ask someone else to do the work... baffles me every time..

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Hint: see the links on this page: http://cboard.cprogramming.com/showthread.php?t=75377
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    me and my friends are trying to do to strengthen are skills.
    Try the book: "C++: A Beginners Guide". Then move on to "Beginning C++ Game Programming".

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    11
    dwks and 7 stud thx for the help as for Wraithan i am not taking any class my father gives us assignments in computing to do every month and this month it is programming please learn some manners and dont be so rude. Until next time chaps ....

  6. #6
    Registered User Kurisu's Avatar
    Join Date
    Feb 2006
    Posts
    62
    ha! Funny stuff.

    While you guys are at it I am learning the basic principles of a capitalistic system so can you write me an Operating System; Package it; Market it; then send me the profit in the form of checks made out to CASH?

    Good Luck and Thanks!

  7. #7
    Registered User
    Join Date
    Feb 2006
    Posts
    11
    Quote Originally Posted by Kurisu
    ha! Funny stuff.

    While you guys are at it I am learning the basic principles of a capitalistic system so can you write me an Operating System; Package it; Market it; then send me the profit in the form of checks made out to CASH?

    Good Luck and Thanks!
    Only if you bake me a REALLY good cake hehe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu
    By Krush in forum C Programming
    Replies: 17
    Last Post: 09-01-2009, 02:34 AM
  2. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 06:22 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Help with a pretty big C++ assignment
    By wakestudent988 in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2006, 09:46 PM
  5. Replies: 1
    Last Post: 10-27-2006, 01:21 PM