Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- #include<fstream>
- using namespace std;
- int main(){
- int filenum[5];
- ifstream myfile ("numbers.txt");
- for(int x = 0, x < 5, x++){
- myfile >> filenum[x];
- cout << x << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement