For the moment I develop a game using classical string and char. But I would like to be able to integrate special characters from input (from std::cin, or on the fly keyb) and from files, that could be typed by foreign users (chineese, arabic, etc...). I wonder if there is a simple way to do this ?
These characters are accessible by the Windows accessory "character table"
For example :
Code: Select all
abdcefgh
àéèïöôâ
ÆÇÑÐßæñƎ
傛僀僖傕傭傯僃
ﯣﯦﺡﺸﺵﻆ
But I wonder how to :
- read them from a file, one by one,
- how to compare them with classical ascii char,
- how to make string operations on them (operator[], concat, substr...).
- how to output them one by one on screen (cout).
Any idea, or any useful tutorial around ? (I searched on chili but did not find anything).
I suppose that wstring can do the job, but I can't make them work as I would like too.
thanks and have a nice c++ day !