Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Заполнение массива из файла (файловый ввод/вывод)
- int main()
- {
- const int N = 100;
- int mass[N] = {0};
- ifstream ff("file.txt");
- if (!ff)
- return 1;
- for (int i = 0; i < N; i++)
- ff >> mass[i];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement