回答編集履歴

1

int word_size = sizeof(wchar_t); 部分の定義を修正しました

2023/01/03 10:46

投稿

asdfghjkl_12345
asdfghjkl_12345

スコア24

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 word;
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