Thread: Generating structures (brainstorming session)

  1. #1
    Unregistered
    Guest

    Question Generating structures (brainstorming session)

    ok I am trying to think of as many possible structures as i can for this problem. I figured i'd pick your brains and see how many we can all comeup with

    You have just opened a video rental store. You need to store information about the following items: videos, and customers. Develop a set of structure declarations which would be needed. Think of the attributes such as customer name, address and video titles that would be needed.Just define as many structures as you wish.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    Thumbs down

    Smells like homework to me. BTW: why are there so many "unregistered" people around here???
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by Sebastiani
    Smells like homework to me. BTW: why are there so many "unregistered" people around here???
    Because registering requires work ( though arguably not much ) and most of the Unregistered posters are just looking for code to use for homework and not actually participate as a member of the board and learn something.

    But you already knew that and your question was rhetorical. I'm just ranting because it aggrivates me just as much as it does you.

    Unregistered, why don't you post the code/design work you've done so far ( if it exists ) and specify what part you're stuck on. Then someone will be happy to help you. No one is going to do your assignment for you.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    > figured i'd pick your brains and see how many we can all comeup with
    Okay, I'll start it and you finish it:
    Code:
    struct Name
    {
    -Prelude
    My best code is written with the delete key.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Prelude
    > figured i'd pick your brains and see how many we can all comeup with
    Okay, I'll start it and you finish it:
    Code:
    struct Name
    {
    -Prelude
    I'll even finish it! You fill in the gaps!!

    Code:
    };
    Now that all the hard part is done...

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Think of the attributes such as customer name, address and video titles that would be needed
    Before you even touch the keyboard, make a list of all these things you want to record.

    When you've done that, group them together according to how closely related they are
    - eg. customer name and address are related, so perhaps they belong in the same structure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  2. Doxygen failing
    By Elysia in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 04-16-2008, 01:24 PM
  3. Structures, and pointers to structures
    By iloveitaly in forum C Programming
    Replies: 4
    Last Post: 03-30-2005, 06:31 PM
  4. Input output with structures
    By barim in forum C Programming
    Replies: 10
    Last Post: 04-27-2004, 08:00 PM
  5. Methods for Sorting Structures by Element...
    By Sebastiani in forum C Programming
    Replies: 9
    Last Post: 09-14-2001, 12:59 PM