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

Visualizza altre proposte

Bacheca pubblica per chiarimenti

  • babarrana327
    babarrana327
    • 4 anni fa

    @Youness Z.
    if you want to add on i can do that too...

    • 4 anni fa
  • babarrana327
    babarrana327
    • 4 anni fa

    task done

    • 4 anni fa
  • Southbite
    Southbite
    • 4 anni fa

    Are there system requirements for this (like must run on Windows or Linux)?

    • 4 anni fa
    1. Southbite
      Southbite
      • 4 anni fa

      Also, is there an expected format for the input (the file being read)?

      • 4 anni fa

Come iniziare a usare i concorsi

  • Pubblica il tuo concorso

    Pubblica il tuo concorso Con facilità e in pochi istanti

  • Ottieni tante proposte

    Ottieni una Miriade di Proposte Da tutto il mondo

  • Seleziona la proposta migliore

    Seleziona la proposta migliore Scarica i file - Facile!

Pubblica subito un concorso o unisciti a noi oggi stesso!