Resource file

I need help on a simple program. I wrote a program that solves the mean and variance of some amount of float numbers. I want to try new thing making the main program run through the resource file by making this resource file contain the float numbers. Please help me with it. Thank You.
1
2
3
4
5
6
#include <fstream> //to work with files

int main(){
   std::ifstream input ("filename");
   //replace cin with input
}
Registered users can post here. Sign in or register to post.