CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    1

    worksheet like feature in C++

    Can someone point me in the right direction to be able to:

    Create a worksheet in a Visual C++ application

    The problem is for a construction estimating program

    I need to be able to add elements to the worksheet (eg. lumber, roofing material, etc...)

    Then be able to input amounts, price per unit amount, etc

    And have the total price updated for each item line


    Would an array of classes be appropiate??

    class constElement
    {
    char item;
    char numberOfItems;
    double pricePerItem;
    .
    .
    .
    .
    Thanks for any advice

  2. #2
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    When you say "worksheet" do you mean something like a spreadsheet? A spreadsheet is a general-pupose thing. You probably want to develop something that is much more specific. The disadvantage of a specialized application is that they are less flexible; the advantage is that the processing is pre-determined and therefore is easier to use to do the things they are developed for.

    You can save a lot of time by deciding (designing) what the application needs to do. The better tyou do that, the less time you might need to change your program. You will likely have data that needs to be stored somewhere, such as a database. That can be a very important area to design. Then decide what the user interface could be. Then decide how to do that.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured