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

Tampilkan Entri Lainnya

Papan Klarifikasi Publik

  • babarrana327
    babarrana327
    • 4 tahun yang lalu

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

    • 4 tahun yang lalu
  • babarrana327
    babarrana327
    • 4 tahun yang lalu

    task done

    • 4 tahun yang lalu
  • Southbite
    Southbite
    • 4 tahun yang lalu

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

    • 4 tahun yang lalu
    1. Southbite
      Southbite
      • 4 tahun yang lalu

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

      • 4 tahun yang lalu

Bagaimana untuk memulai sebuah kontes

  • Buat kontes Anda

    Buat Kontes Anda Cepat dan mudah

  • Dapatkan jutaan entri

    Dapatkan Jutaan Entri Dari seluruh dunia

  • Pilih entri terbaik

    Pilih entri terbaik Unggah file - Mudah!

Buat sebuah Kontes Sekarang atau Gabung dengan kami Hari ini!