Input File open validation and average

  • 状态: Closed
  • 奖金: $25
  • 参赛作品已收到: 7

竞赛简介

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

您还可能感兴趣的技能

此竞赛的顶尖作品

查看更多参赛作品

公共说明面板

  • babarrana327
    babarrana327
    • 4 年 之前

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

    • 4 年 之前
  • babarrana327
    babarrana327
    • 4 年 之前

    task done

    • 4 年 之前
  • Southbite
    Southbite
    • 4 年 之前

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

    • 4 年 之前
    1. Southbite
      Southbite
      • 4 年 之前

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

      • 4 年 之前

如何以竞赛开始

  • 发布您的竞赛

    发起您的竞赛 快速简单

  • 获取众多参赛作品

    获取大量参赛作品 来自世界各地

  • 悬赏最佳参赛作品

    悬赏最佳参赛作品 下载文件-简单!

立即发布竞赛 或者立即加入我们!