d从外部文件读入中文

import std.stdio;
import std.file;
void main(char[][] argv)
{//从外部是可以这样读入中文的.
	char[] data = cast(char[]) read(argv[1]);
	writef("%s", data);
}
//这里
import std.stdio;

void main()
{
  string s = stdin.readln();
  write(s);//能够写中文,编译得很快.
}//但有中文gbk注释时,就不能编译了.

ulongdoublex87在执行转换,缓存在x87上,这是32位机子.64位不存在.

posted @ 2020-09-04 10:19  zjh6  阅读(15)  评论(0)    收藏  举报  来源