Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムはファイル名を入力として受け入れ、次に示す 3 つの数字を出力する必要があります。
この質問をどこから始めればよいか本当にわかりません。助けてください。
開始に役立つ疑似コードを次に示します。
open file handle set counter_line=0 set counter_word=0 set counter_char=0 while iterate file increment counter_line split line into array counter_word += length of split array counter_char += length of line end while close file handle