:: reverse dictionary ::
※ソースファイルについて
文字列の文字数を求めるには、wcslen 関数を使います。
#include <locale.h> #include <string.h>
wchar_t str[] = L"Cプログラム"; int len; setlocale(LC_ALL, "ja"); /* ロケールを日本語に設定 */ len = wcslen(str);
len は 6 になります。
size_t wcslen(const wchar_t *s)
文字列 s の文字数を求めます。
s … 文字列
文字列 s の文字数
Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com