-1
テキストファイルの入力は、次の形式です。ここで、5は考慮する行の数、1は1番目に多い単語、8番目の単語が8番目に多い単語です。私の質問は、この数値を変数に読み込む方法です。テキストファイルからいくつかの行を読み込み、C++を使用してそこにあるすべての単語の頻度を表示したい
入力テキストファイルは:
5 1 8
the classical latin alphabet also known as the roman alphabet is a writing system which evolved
from the cumaean version of the greek alphabet the cumaean script was descended from the
phoenician alphabet the cumaean alphabet was adopted and modified by the etruscans who
ruled early rome the etruscan alphabet was in turn adopted and further modified by the
ancient romans to write the latin language
使用する言語を知っておくことが重要です。 http://idownvotedbecau.se/noresearch/ – tilz0R
言語は上記の質問のタイトルでC++です。 –
C言語にタグが付けられたのはなぜですか? – tilz0R