User Profile

Collapse

Profile Sidebar

Collapse
HarisHohkl
HarisHohkl
Last Activity: Jan 31 '07, 01:39 PM
Joined: Jan 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for the help....
    See more | Go to post

    Leave a comment:


  • HarisHohkl
    started a topic Need help on the display total value of all item
    in C

    Need help on the display total value of all item

    Hi, I've this function in a class to update the total value.but when i try to remove the these row highlight in Bold it crash, what should i do????

    void display_total_v alue()

    {
    double value;
    double totalvalue=0;
    int r, c;
    setcolor (11);
    for( r=0; r<row; r++ )

    {
    for( c=0; c<col; c++ )
    {
    if(warehouseshe lfTVs[r][c]...
    See more | Go to post
    Last edited by horace1; Jan 30 '07, 06:38 PM. Reason: added code tags

  • HarisHohkl
    replied to how to put classes into a 2d array
    in C
    Hi, i still can't figure out how to capture the total cost of the three different item and add up the total. Please help me.... need to submit it by wednesday. thanks...
    See more | Go to post

    Leave a comment:


  • HarisHohkl
    replied to how to put classes into a 2d array
    in C
    for the display total item, it can add up all but not for the total value. how can i ask the programme to go to the item classess to capture the cost of the item for each indivual tv and multiply it to get the total???? thanks[

    QUOTE=horace1]I only modified update_shelfs() and display_shelfs( ) and the code which called them, i.e. options 1, 2, 4 and 5 now appear to do something. If they do what you require you now need to look at...
    See more | Go to post

    Leave a comment:


  • HarisHohkl
    replied to how to put classes into a 2d array
    in C
    thanks for the help, but how come it can't display the total amount for the tv??[

    QUOTE=horace1]done a few mods to add item to shelf and display same - not sure if this is what you require???
    Code:
    #include <iostream.h>
    #include <iomanip.h>
    #include <string.h>
    #include <process.h>
    #include <cstdlib>
    #include <windows.h>
    
    #define  row  4
    ...
    See more | Go to post

    Leave a comment:


  • HarisHohkl
    replied to how to put classes into a 2d array
    in C
    I've done up the programme, need help to fine tune it, as the shelf classes cannot receive data from the item classes. my shelf classes need to capture the item no and cost of the 3 TV items. Thanks for the time in viewing

    Code:
    #include <iostream.h>
    #include <iomanip.h>
    #include <string.h>
    #include <process.h>
    #include <cstdlib>
    #include <windows.h>
    ...
    See more | Go to post
    Last edited by horace1; Jan 28 '07, 04:44 PM. Reason: inserted code tags

    Leave a comment:


  • HarisHohkl
    replied to how to put classes into a 2d array
    in C
    Hi, i have done up my programme, need ur advice on how can i capture the tv classes data and put it to the shelf. is there any way i can sent the code to u?...
    See more | Go to post

    Leave a comment:


  • HarisHohkl
    started a topic how to put classes into a 2d array
    in C

    how to put classes into a 2d array

    Hi, my programme using visual C++ need 3 classes, 1 for 'item tv', 1 for 'shelf' and the other 'warehouse'. The 'item tv' class will update and display the item number, description, cost and qty of 3 tv. The shelf will capture the item no. and qty of any of the 3 tv of the "item class " and ask where to put the item in the 2D array. It will then display the 2D array, add up the total qty and the cost. The warehouse class will have a address...
    See more | Go to post
No activity results to display
Show More
Working...