回答編集履歴
1
int word_size = sizeof(wchar_t); 部分の定義を修正しました
test
CHANGED
@@ -12,10 +12,10 @@
|
|
12
12
|
DxLib::DrawStringToHandle(x, y, str_vec.at(index).substr(index_char,1).c_str(), color, font_data);
|
13
13
|
を、
|
14
14
|
|
15
|
-
wchar_t
|
15
|
+
int word_size = sizeof(wchar_t);
|
16
16
|
|
17
17
|
DxLib::DrawStringToHandle(x, y,
|
18
|
-
str_vec.at(index).substr(index_char * word, word).c_str(), color, font_data);
|
18
|
+
str_vec.at(index).substr(index_char * word_size , word_size ).c_str(), color, font_data);
|
19
19
|
```
|
20
20
|
などいろいろ修正したら、とりあえず文字送り表示はできるようになりました。
|
21
21
|
|