Hello World in D Language
来源:互联网 发布:看不见的客人知乎 编辑:程序博客网 时间:2024/04/28 18:34
import std.stdio;import std.conv;void main(string[] args){if(args.length > 1){string s = args[1];int i = to!int(s);writefln("I will write %d time(s) Hello World!" , i);for(int c=0;c<i;c++){writeln("hello world!");}}}
D 语言可以看为是 C++ / C 的扩展,但是对代码的编写性,可阅读性有了很大的提升。
从现在开始学习 D 语言~ 因为看起来好像很有趣, 就跟当年, 没有手机的时候用手机, iphone 不是街机的时候用 iphone 和黑莓贵的要死的时候用黑莓,Nexus 大陆买不到用 Nexus 的装逼心情是一样的。。。
参考
http://dlang.org
- Hello World in D Language
- Hello, the World in Euhat Language
- Hello World 之 Programming Language
- D Hello World
- Hello world in Java
- Hello World in ODE
- OpenGL Shading Language 入门之 Hello World
- Hello World(Java) in Eclipse
- Hello World(C++) in Eclipse
- puts "Hello world" in VC++
- 一 Hello World in ABAP
- ‘Hello World!’ in ARM assembly
- Hello world in a container
- ‘Hello World!’ in ARM assembly
- Eclipse Plug-in Hello world
- Hello Gtk+ in Linux Assembly Language
- spring in action 的Hello World
- opensocial in eclipse - Chapter 1 - "hello world"!
- spring security3教程系列--自定义过滤链
- poj 1703 -- Find them, Catch them(并查集)
- SVNX *.o *.lo *.a *.la *.al .libs *.so *.so 等有些文件无法提交解决方法
- uva11490
- average解题报告
- Hello World in D Language
- 听说有个模板写代码能舒服一点?
- poj 2492 -- A Bug's Life(并查集)
- cocos2d-x重新学习的经历(第一天)---使用animation播放动画
- 51定时器总结
- c++函数参数类型-引用
- 在Ubuntu12.10系统安装JDK7
- Super Star----Lunar版
- myeclipse设置自定义快捷方式的方法