手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程问答
编程博文
编程实例
硬件设备
网络运营
软件教程
移动数码
办公软件
操作系统
人工智能
栏目导航
▸ 编程语言
▸ 前端开发
▸ 移动开发
▸ 开发工具
▸ 程序设计
▸ 行业应用
▸ CMS系统
▸ 服务器
▸ 数据库
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
子栏目导航
php实例代码
Javascript实例代码
python实例代码
Shell实例代码
Sql实例代码
正则表达式实例代码
Python函数
Java实例代码
C#实例代码
C语言实例代码
C++实例代码
Erlang实例代码
Dart实例代码
D3.js实例代码
D语言实例代码
CSS实例代码
Cobol实例代码
Clojure实例代码
Bootstrap实例代码
Vue实例代码
Angular实例代码
汇编语言实例
编程之家
Dart实例代码
Dart语言位运算符
void main() { var a = 2;// Bit presentation 10 var b = 3;// Bit presentation 11 var result = (a & b);
作者:编程之家 时间:2022-07-04
Dart语言条件表达式
void main() { var a = 10; var res = a > 12 ? "value greater than 10":"value lesser than or equal to 10";
作者:编程之家 时间:2022-07-04
Dart语言并发
import 'dart:isolate'; void foo(var message){ print('execution from foo ... the message is :${message}');
作者:编程之家 时间:2022-07-04
Dart语言异步
import 'dart:io'; void main() { print("Enter your name :"); // prompt for user input
作者:编程之家 时间:2022-07-04
Dart语言Typedefs示例2
typedef ManyOperation(int firstNo , int secondNo);//function signature Add(int firstNo,int second){ print("Add result is ${firstNo+second}");
作者:编程之家 时间:2022-07-04
Dart语言Typedef示例
typedef ManyOperation(int firstNo , int secondNo); //function signature Add(int firstNo,int second){ print("Add result is ${firstNo+second}");
作者:编程之家 时间:2022-07-04
Dart语言添加断点
void main() { int a = 10, b = 20, c = 5; c = c * c * c; print("$a + $b = ${a+b}"); print("$a%$b = ${a%b}");// Add a break point here
作者:编程之家 时间:2022-07-04
Dart语言自定义异常
class AmtException implements Exception { String errMsg() => 'Amount should be greater than zero';
作者:编程之家 时间:2022-07-04
Dart语言抛出异常
main() { try { test_age(-2); } catch(e) { print('Age cannot be negative'); } } void test_age(int age) {
作者:编程之家 时间:2022-07-04
Dart语言Finally块
main() { int x = 12; int y = 0; int res; try { res = x ~/ y; } on IntegerDivisionByZeroException { print('Cannot divide by zero');
作者:编程之家 时间:2022-07-04
Dart语言on…catch块
main() { int x = 12; int y = 0; int res; try { res = x ~/ y; } on IntegerDivisionByZeroException catch(e) {
作者:编程之家 时间:2022-07-04
Dart语言使用catch块
main() { int x = 12; int y = 0; int res; try { res = x ~/ y; } catch(e) { print(e); } }
作者:编程之家 时间:2022-07-04
Dart语言使用ON块
main() { int x = 12; int y = 0; int res; try { res = x ~/ y; } on IntegerDivisionByZeroException { print('Cannot divide by zero');
作者:编程之家 时间:2022-07-04
Dart语言通用队列
import 'dart:collection'; void main() { Queue<int> queue = new Queue<int>(); print("Default implementation ${queue.runtimeType}");
作者:编程之家 时间:2022-07-04
Dart语言通用集(Set)
void main() { Set <int>numberSet = newSet<int>(); numberSet.add(100); numberSet.add(20);
作者:编程之家 时间:2022-07-04
Dart语言通用列表示例
void main() { List <String> logTypes = new List <String>(); logTypes.add(1); logTypes.add("ERROR");
作者:编程之家 时间:2022-07-04
Dart语言通用列表
void main() { List <String> logTypes = new List <String>(); logTypes.add("WARNING");
作者:编程之家 时间: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