質問編集履歴
3
結果の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
Read.txt
|
47
47
|
ラーメン
|
48
48
|
Write.txt
|
49
|
-
|
49
|
+
|
50
50
|
|
51
51
|
### 試したこと
|
52
52
|
|
2
発生している問題の部分を正確に
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
### 発生している問題・エラーメッセージ
|
12
12
|
|
13
|
-
文字化け
|
13
|
+
文字化け、出力ファイルに何も出力されないなど
|
14
14
|
|
15
15
|
### 該当のソースコード
|
16
16
|
|
1
ファイルパスの修正と文字サイズの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,15 +24,15 @@
|
|
24
24
|
|
25
25
|
int main()
|
26
26
|
{
|
27
|
-
ifstream fin("../
|
27
|
+
ifstream fin("././Read.txt");
|
28
28
|
|
29
|
-
char str;
|
29
|
+
char str[16];
|
30
30
|
fin >> str;
|
31
31
|
cout << str;
|
32
32
|
|
33
33
|
fin.close();
|
34
34
|
|
35
|
-
ofstream fout("../
|
35
|
+
ofstream fout("././Write.txt");
|
36
36
|
|
37
37
|
fout << str;
|
38
38
|
cout << str;
|