Input File open validation and average
- Status: Closed
- Hadiah: $25
- Entri Diterima: 7
Deskripsi Kontes
Declare the file stream objects at the same place you declare all other variables (on the top of the block, above the banner section).
Have the stream object "connected" to the file for the smaller possible time. I.e. open just before you are about to use the file and close the connection as soon as you are done (not at the end of the program)
When reading from a file you may assume that the data in the file are the correct type (integers), so no ignore needed and you can read them in the same extraction statement (since there is no prompt).
Remember that the input file should be in the SAME folder as your program
Keahlian yang Disarankan
Entri teratas dari kontes ini
-
Sunny767 India
-
Rafalello Poland
-
razifp Indonesia
-
babarrana327 Pakistan
-
Southbite Australia
Papan Klarifikasi Publik
Bagaimana untuk memulai sebuah kontes
-
Buat Kontes Anda Cepat dan mudah
-
Dapatkan Jutaan Entri Dari seluruh dunia
-
Pilih entri terbaik Unggah file - Mudah!