How to Calculate the Average of Numbers from a File Using C++?

  • Topic: C/C++ 
  • Thread starter Thread starter ZakAttk1
  • Start date Start date
  • Tags Tags
    File
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
ZakAttk1
Messages
7
Reaction score
0
How do I use file streams to extract numbers from a file, add them up, and average them out?
 
Physics news on Phys.org