Dart教程
-
Dart编程实例-dowhile循环-Dart实例教程|
Dart编程实例 - do while 循环 void main () { var n = 10 ; do { print ( n ); n -- ; } while ( n = 0 ); }...
-
Dart编程实例-dartwhile循环-Dart实例教程|
Dart编程实例 - dart while 循环 void main () { var num = 5 ; var factorial = 1 ; while ( num = 1 ) { factorial = factorial * num ; num -- ; } print ( The factorial is ${ factor...
-
Dart编程实例-dartfor-in循环-Dart实例教程|
Dart编程实例 - dart for-in 循环 void main () { var obj = [ 12 , 13 , 14 ]; for ( var prop in obj ) { print ( prop ); } }...
-
Dart编程实例-Dartfor循环-Dart实例教程|
Dart编程实例 - Dart for循环 void main () { for ( var temp , i = 0 , j = 1 ; j 30 ; temp = i , i = j , j = i + temp ) { print ( ${ j } ); } }...
-
Dart编程实例-逻辑操作符-Dart实例教程|
Dart编程实例 - 逻辑操作符 void main () { var a = 10 ; var b = 12 ; var res = ( a b ) || ( b 10 ); print ( res ); var res1 =! ( a == b ); print ( res1 ); }...
-
Dart编程实例-赋值操作符-Dart实例教程|
Dart编程实例 - 赋值操作符 void main () { var a = 12 ; var b = 3 ; a += b ; print ( a+=b : ${ a } ); a = 12 ; b = 13 ; a -= b ; print ( a-=b : ${ a } ); a = 12 ; b = 13 ; a ...
-
Dart编程实例-类型测试操作符is!-Dart实例教程|
Dart编程实例 - 类型测试操作符 is! void main () { double n = 2.20 ; var num = n is ! int ; print ( num ); }...
-
Dart编程实例-类型测试操作符is-Dart实例教程|
Dart编程实例 - 类型测试操作符is void main () { int n = 2 ; print ( n is int ); }...
-
Dart编程实例-相等和关系操作符-Dart实例教程|
Dart编程实例 - 相等和关系操作符 void main () { var num1 = 5 ; var num2 = 9 ; var res = num1 num2 ; print ( num1 greater than num2 :: + res . toString ()); res = num1 num...
-
Dart编程实例算术操作符-Dart实例教程|
Dart编程实例 算术操作符 void main () { var num1 = 101 ; var num2 = 2 ; var res = 0 ; res = num1 + num2 ; print ( Addition: ${ res } ); res = num1 - num2 ; print ( Subtracti...
-
Dart编程实例-Const关键字-Dart实例教程|
Dart编程实例 - Const 关键字 void main () { final v1 = 12 ; const v2 = 13 ; v2 = 12 ; }...
-
Dart编程实例-Final关键字-Dart实例教程|
Dart编程实例 - Final 关键字 void main () { final val1 = 12 ; print ( val1 ); }...
-
Dart编程实例-Dynamic关键字-Dart实例教程|
Dart编程实例 - Dynamic 关键字 void main () { dynamic x = tom ; print ( x ); }...
-
Dart编程实例-Dart面向对象编程-Dart实例教程|
Dart编程实例 - Dart 面向对象编程 class TestClass { void disp () { print ( Hello World ); } } void main () { TestClass c = new TestClass (); c . disp (); }...
-
Dart编程实例-EnablingCheckedMode-Dart实例教程|
Dart编程实例 - Enabling Checked Mode void main () { int n = hello ; print ( n ); }...
-
Dart编程实例-第一个Dart程序-Dart实例教程|
Dart编程实例 - 第一个Dart程序 main () { print ( Hello World! ); }...
-
Dart编程实例-HelloWorld-Dart实例教程|
Dart编程实例 - HelloWorld void main () { print ( hello world ); }...