Skip to content

Instantly share code, notes, and snippets.

@krofna
Created October 29, 2012 18:16
Show Gist options
  • Save krofna/3975414 to your computer and use it in GitHub Desktop.
Save krofna/3975414 to your computer and use it in GitHub Desktop.
bash session
krofna@home:~/Dev/Binary-Tree$ g++ *.cpp --std=c++0x
krofna@home:~/Dev/Binary-Tree$ ./a.out
1) Read current inventory file.
2) Read/Exec monthly update file.
3) Display statistics.
4) Search list items file.
5) Quit.
1
File name: Inventory.txt
File read successfully!
1) Read current inventory file.
2) Read/Exec monthly update file.
3) Display statistics.
4) Search list items file.
5) Quit.
2
File name: MonthlyUpdate.txt
Monthly update executed successfully!
1) Read current inventory file.
2) Read/Exec monthly update file.
3) Display statistics.
4) Search list items file.
5) Quit.
3
Overall number of parts: 1303
Number of different parts: 89
1) Read current inventory file.
2) Read/Exec monthly update file.
3) Display statistics.
4) Search list items file.
5) Quit.
4
File name: Search.txt
Code: MI00016M10, Quantity: 0
Code: MI00015, Name: Base Quantity: 25
Code: AM0477, Quantity: 0
Code: 5005M15, Name: Belt_small_loop Quantity: 2
Code: AM0212, Name: Corner_Connect Quantity: 11
Code: AL8312, Quantity: 0
Code: E4P360250S4149B, Quantity: 0
Code: E4P360250S4149D, Name: Encoder_Base_360_CPR Quantity: 16
Code: 540380O, Name: Energy_Chain_Cable_Carrier_1_meter Quantity: 12
Code: 502012W, Quantity: 0
Code: AM0515, Name: E-Stop_Button Quantity: 12
Code: 8010673E, Name: FisherPrice_Motor_12VDC_w/_19_tooth_pinion Quantity: 8
Code: AM0030, Quantity: 0
Code: AM0448, Name: Grease_pack_2_gram Quantity: 1
Code: JSI101208, Name: iglide_bearing_12 Quantity: 12
Code: EBRI10R, Name: igubal_Rod_End_Bearing Quantity: 3
Code: V72B17D8048, Quantity: 0
Code: FRVIC884, Name: Speed_Controller_(Victor_884)_VICTOR-884-12-12 Quantity: 48
Code: BMM092CS, Quantity: 0
Code: AM0396, Name: Toughbox_Long_Hex_Output_Shaft_Aluminum Quantity: 8
Code: 2203P2, Name: Union_Tee Quantity: 3
Code: ACH63US, Name: USB_4-port_hub_Super_Mini_USB_2.0_4-Port_Hub Quantity: 15
Code: 2621003040O, Quantity: 0
Code: 2621003030P, Name: Window_Motor_-_Right_12V_DC Quantity: 10
Average number of comparisons: 4
1) Read current inventory file.
2) Read/Exec monthly update file.
3) Display statistics.
4) Search list items file.
5) Quit.
5
krofna@home:~/Dev/Binary-Tree$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment