BoraluGoda

Member
Jan 28, 2011
486
114
0
::: GiRiPuRa :::
void viewAllItem(){
clrscr();
for(int x=0;x<index;x++){
itm = itmArr[x];
cout<<endl;
cout<<" Item No. : "<<itm.IT<<endl;
cout<<" Item Name : "<<itm.name<<endl;
cout<<" Item Price : "<<itm.price<<endl;

}
}

මචංල මෙ තියෙන්නෙ මගෙ C++ Program එකේ කොටසක්
මට ඔන මෙ ටික පහල එකේ තියන විදියට View කරන්න
අනේ දන්න කෙනෙක් ඉන්නව නම් කියල දෙනවද......

2wdbvbq.jpg
 

¤--bACarDi--¤

Well-known member
  • Jan 9, 2009
    12,130
    288
    83
    124.43.xxx.xxx
    #include <iomanip>


    void viewAllItem(){
    clrscr();
    cout<<setw(16)<<"Item No"<<setw(8)<<"Menu Item"<<setw(8)<<"Item Price"<<endl<<endl;
    for(int x=0;x<index;x++){
    itm = itmArr[x];
    cout<<endl;
    cout<<setw(16)<<itm.IT;
    cout<<setw(8)itm.name<<;
    cout<<setw(8)<<itm.price<<endl;

    }
    }
     
    • Like
    Reactions: BoraluGoda

    BoraluGoda

    Member
    Jan 28, 2011
    486
    114
    0
    ::: GiRiPuRa :::
    #include <iomanip>


    void viewAllItem(){
    clrscr();
    cout<<setw(16)<<"Item No"<<setw(8)<<"Menu Item"<<setw(8)<<"Item Price"<<endl<<endl;
    for(int x=0;x<index;x++){
    itm = itmArr[x];
    cout<<endl;
    cout<<setw(16)<<itm.IT;
    cout<<setw(8)itm.name<<;
    cout<<setw(8)<<itm.price<<endl;

    }
    }

    THanx machn uba C++ wala File handling gena dannvda....??
     

    kiddoroks

    Junior member
  • Jun 9, 2011
    509
    22
    18
    මචන් අපීට ඔනෙ වීස්තර ටිකක් save කරන්න සහ අපිට ඔනෙ විස්තර search කරන්න දනනෙ නෑද්ද මචන්?????????
    ලොකු උදවුවක් මචන්