D语言基本类型语法

import std.stdio;

enum : string { 
   A = hello, 
   B = world, 
} 

int main(string[] args) { 
   writefln(A : %s, A); 
   writefln(B : %s, B); 

   return 0; 
}

相关文章

// ------------------- import std.stdio; void main(str...
import std.stdio; int main () { /* local variable defi...
import std.stdio; int main(string[] args) { int a = 20...
import std.stdio; int main(string[] args) { int a = 4;...
import std.stdio; int main(string[] args) { int a = 21;...
import std.stdio; int main(string[] args) { uint a = 60...