Ticker

6/recent/ticker-posts

Program to Store Items in a File using Vector Class

 


In this program store items in a File called "Items.txt" using Vector Class.


Here are the Input and Output format.

Input: 

Enter the number of items: 4

Enter All item 

Enter 1 Item Name, Price and quantity soap 16 2

Enter 2 Item Name, Price and quantity toothbrush 23 1

Enter 3 Item Name, Price and quantity orange 30 3

Enter 4 Item Name, Price and quantity banana 48 12

Output:

Item 1

soap

16

2


Item 2

toothbrush

23

1


Item 3

orange

30

3

Item 4

banana

48

12

 


Post a Comment

0 Comments