Input File open validation and average
- Stato: Closed
- Premio: $25
- Proposte ricevute: 7
Descrizione del concorso
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
Competenze consigliate
Le migliori proposte per questo concorso
-
Sunny767 India
-
Rafalello Poland
-
razifp Indonesia
-
babarrana327 Pakistan
-
Southbite Australia
Bacheca pubblica per chiarimenti
Come iniziare a usare i concorsi
-
Pubblica il tuo concorso Con facilità e in pochi istanti
-
Ottieni una Miriade di Proposte Da tutto il mondo
-
Seleziona la proposta migliore Scarica i file - Facile!