¹C«È:  µù¥U | µn¿ý | ·j¯Á | À°§U | VIPÃÙ§U¥»¯¸ | ¥ZµnÃÙ§U¼s§i | ³]¬°­º­¶ | ¥[¤J¦¬Âà | ÁcÅ餤¤å

 

your gf Ú»­ø¨ì¤ù ¥î¼äóa ¤£¯à³X°ÝSOPCAST­¶­± ¶Â¦â­I´º ¤ÑÀs¤K³¡·tª÷Ä_ ¸Ý¥Ponline©xºô ¤p¤t¬ü ½u¤WH°Êµe §K¶O§Y®É³ø»ù ªá¼Ë¤Ö¦~¤Ö¤k¢ê¢ü ¤Ó»×¥ß§Ó¶Ç ¤H¶¡¤¿¾¹º©µe Hebe·s¾v«¬ Media calssic I miss you³¯¬f¦t seed H LostPlanet¯}¸Ñ ¤Ñ°ó¨pªA³Ü¤ôµ{¦¡ ¤Ñ¥~2 online ¯]®ü®á®³¤p©j¥þ®M

 




·j¯Á¿ï¶µ ¯Á¤Þ¨t²Î¤u¨ãµ¡
 
¼ÐÃD: C++ problem
http://manyway.net ÃÙ§Uºô¯¸¸ü¤J¤¤...
crazy2000
¤j²³¥¿¦¡·|­û
Rank: 2Rank: 2


ºaÅA¾±³¹ ¥Ø«e¨S¦³¾±³¹

UID¡G 1087572

©Ê§O¡G «O±K

ºëµØ¡G 0 ½g

¿n¤À¡G 106 ÂI

©«¤l¡G 9 ½g

  ¤j ¤¤ ¤p
µoªí©ó 2007-5-12 09:20  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 

C++ problem ±z¬O²Ä 663­ÓÂsÄýªÌ

have a newbie C++ competition coming up this Monday, and i had cameacross this C++ practice problem. i wonder if anyone of ya expertscould help me.
here is the question:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*create an input files with the name of the merchandises; the price; the  manufacturer and the quantity remainning in stock.

*Output all the inventory records with the manufacturer whown first,followed by the name of the merchandise, price, quantity, totalquantity of all merchandises, and the total price of all.

*hint: use "file", "structure", and "for loop"
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sample Input:

Hammer 11.99 Stanley 22
Paint 18.59 Walltec 54
Saw 8.56 Crutrite 3
Bulbs 5.99 GE 18


sample Output:

Stanley Hammer $11.99 22
Walltec Paint $18.59 54
Crutrite Saw $8.56 3
GE Bulbs $5.99 18


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



I am confuse about how to insert multiple datas from a file using loop.
I will be appreciated if someone give me a sample solution.
Thankyou!!

³»³¡
yaca
¤j²³¥¿¦¡·|­û
Rank: 2Rank: 2


ºaÅA¾±³¹ ¥Ø«e¨S¦³¾±³¹

UID¡G 1130184

©Ê§O¡G «O±K

ºëµØ¡G 0 ½g

¿n¤À¡G 100 ÂI

©«¤l¡G 5 ½g

  ¤j ¤¤ ¤p
µoªí©ó 2007-6-6 18:50  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 

If I don't think too much .
We can use ASCII  code .

³»³¡



¥»¯¸³]³Æ¾¹§÷¥Ñ Many Way (HK) Limited ÃÙ§U´£¨Ñ

·í«e®É°Ï GMT+8, ²{¦b®É¶¡¬O 2008-11-23 16:59

Advertisting Agency

Audit and Analytics

Partner Companies

Discuz! 5.5.0¢x0.052929 (s), 7 queries, Copyright © 2008 HK-PUB.COM All Rights Reserved. ¥»¯¸Án©ú - ¼s§i¬d¸ß - ²M°£ Cookies - Ápô§Ú­Ì - ¤j²³½×¾Â - Archiver - WAP