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.
は
cout.put(value);
c ++でファイルから画面に値を読み取るのに有効ですか?
あなたの質問はかなりあいまいです。ファイルにいくつかのデータ(整数など)があると仮定すると、それらをローカル変数に抽出して画面に出力できます。
... int k; ifstream i; i.open(yourfilename.txt); k << i; cout << i; ...
valueが で出力できる型であると仮定するとcout、
value
cout
cout << value;
うまくいくはずです。