手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程问答
编程博文
编程实例
硬件设备
网络运营
软件教程
移动数码
办公软件
操作系统
人工智能
栏目导航
▸ 编程语言
▸ 前端开发
▸ 移动开发
▸ 开发工具
▸ 程序设计
▸ 行业应用
▸ CMS系统
▸ 服务器
▸ 数据库
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
子栏目导航
php实例代码
Javascript实例代码
python实例代码
Shell实例代码
Sql实例代码
正则表达式实例代码
Python函数
Java实例代码
C#实例代码
C语言实例代码
C++实例代码
Erlang实例代码
Dart实例代码
D3.js实例代码
D语言实例代码
CSS实例代码
Cobol实例代码
Clojure实例代码
Bootstrap实例代码
Vue实例代码
Angular实例代码
汇编语言实例
编程之家
D语言实例代码
D语言if...else语句
import std.stdio; int main () { /* local variable definition */ int a = 100; /* check the boolean condition */
作者:编程之家 时间:2022-07-04
D语言if语句
import std.stdio; int main () { /* local variable definition */ int a = 10; /* check the boolean condition using if statement */
作者:编程之家 时间:2022-07-04
D语言continue语句
import std.stdio; int main () { /* local variable definition */ int a = 10; /* do loop execution */ do { if( a == 15) {
作者:编程之家 时间:2022-07-04
D语言break语句
import std.stdio; int main () { /* local variable definition */ int a = 10; /* while loop execution */ while( a < 20 ) {
作者:编程之家 时间:2022-07-04
D语言嵌套循环
import std.stdio; int main () { /* local variable definition */ int i, j; for(i = 2; i<100; i++) { for(j = 2; j <= (i/j); j++)
作者:编程之家 时间:2022-07-04
D语言do...while循环
import std.stdio; int main () { /* local variable definition */ int a = 10; /* do loop execution */ do{ writefln("value of a: %d", a);
作者:编程之家 时间:2022-07-04
D语言for循环
import std.stdio; int main () { /* for loop execution */ for( int a = 10; a < 20; a = a + 1 ) { writefln("value of a: %d", a);
作者:编程之家 时间:2022-07-04
D语言关联数组的属性
import std.stdio; void main () { int[string] array1; array1["test"] = 3; array1["test2"] = 20;
作者:编程之家 时间:2022-07-04
D语言初始化关联数组
import std.stdio; void main () { int[string] days = [ "Monday" : 0, "Tuesday" : 1,
作者:编程之家 时间:2022-07-04
D语言关联数组
import std.stdio; void main () { int[string] e;// associative array b of ints that are e["test"] = 3;
作者:编程之家 时间:2022-07-04
D语言数组连接
import std.stdio; void main () { // an array with 5 elements. double a[5] = 5; double b[5] = 10; double [] c;
作者:编程之家 时间:2022-07-04
D语言数组设置
import std.stdio; void main () { // an array with 5 elements. double a[5]; a[] = 5; writeln("Array a:",a);
作者:编程之家 时间:2022-07-04
D语言数组拷贝
import std.stdio; void main () { // an array with 5 elements. double a[5] = [1000.0, 2.0, 3.4, 17.0, 50.0];
作者:编程之家 时间:2022-07-04
D语言数组分片
import std.stdio; void main () { // an array with 5 elements. double a[5] = [1000.0, 2.0, 3.4, 17.0, 50.0];
作者:编程之家 时间:2022-07-04
D语言访问二维数组
import std.stdio; void main () { // an array with 5 rows and 2 columns. int a[5][2] = [ [0,0], [1,2], [2,4], [3,6],[4,8]];
作者:编程之家 时间:2022-07-04
D语言数组属性
import std.stdio; void main() { int n[ 5 ]; // n is an array of 5 integers // initialize elements of array n to 0
作者:编程之家 时间:2022-07-04
D语言访问数组元素
import std.stdio; void main() { int n[ 10 ]; // n is an array of 10 integers // initialize elements of array n to 0
作者:编程之家 时间:2022-07-04
D语言限制字符
import std.stdio; import std.string; void main() { string s = "H123Hello1"; string result = munch(s, "0123456789H");
作者:编程之家 时间:2022-07-04
D语言字符大小写
import std.stdio; import std.string; void main() { char[] s1 = "hello World ".dup; writeln("Capitalized string of s1 is ",capitalize(s1));
作者:编程之家 时间:2022-07-04
D语言索引方法
import std.stdio; import std.string; void main() { char[] s1 = "hello World ".dup; writeln("indexOf of llo in hello is ",std.string.indexOf(s1,"llo"));
作者:编程之家 时间:2022-07-04
D语言替换字符串
import std.stdio; import std.string; void main() { char[] s1 = "hello world ".dup; char[] s2 = "sample".dup;
作者:编程之家 时间:2022-07-04
D语言字符串比较
import std.stdio; void main() { string s1 = "Hello"; string s2 = "World"; string s3 = "World";
作者:编程之家 时间:2022-07-04
D语言字符串长度
import std.stdio; void main(string[] args) { string greeting1 = "Good"; writefln("Length of string greeting1 is %d",greeting1.length);
作者:编程之家 时间:2022-07-04
D语言字符串连接
import std.stdio; void main(string[] args) { string greeting1 = "Good"; char[] greeting2 = "morning".dup;
作者:编程之家 时间:2022-07-04
D语言核心语言字符串
import std.stdio; void main(string[] args) { string greeting1 = "Hello all"; writefln("%s",greeting1);
作者:编程之家 时间:2022-07-04
D语言访问联合体成员
import std.stdio; union Data { int i; float f; char str[13]; }; void main( ) { Data data; data.i = 10;
作者:编程之家 时间:2022-07-04
D语言定义联合体
import std.stdio; union Data { int i; float f; char str[20]; }; int main( ) { Data data; writeln( "Memory size occupied by data : ", data.sizeof);
作者:编程之家 时间:2022-07-04
D语言静态成员
import std.stdio; struct Books { char [] title; char [] subject = "Empty".dup; intbook_id; char [] author = "Raj".dup;
作者:编程之家 时间:2022-07-04
D语言结构初始化
import std.stdio; struct Books { char [] title; char [] subject = "Empty".dup; intbook_id = -1;
作者:编程之家 时间:2022-07-04
D语言结构体作为函数参数
import std.stdio; struct Books { char [] title; char [] author; char [] subject; intbook_id; }; void main( ) {
作者:编程之家 时间:2022-07-04
上一页
1
2
3
4
5
下一页
小编推荐
热门标签
更多
python
JavaScript
java
HTML
reactjs
C#
Android
CSS
Node.js
sql
r
python-3.x
MysqL
jQuery
c++
pandas
Flutter
angular
IOS
django
linux
swift
typescript
路由器
JSON
路由器设置
无线路由器
h3c
华三
华三路由器设置
华三路由器
电脑软件教程
arrays
docker
软件图文教程
C
vue.js
laravel
spring-boot
react-native