C++ helloworld
C++ data types
c++ is statically typed 'type variable_list;' c++ variables
lvalue − Expressions that refer to a memory location is called "lvalue" expression. rvalue − The term rvalue refers to a data value that is stored at some address in memory. C++ operators
Storage Classes in C++
|
Dart helloworld
dart data types
lists are equivalent of arrays(ordered lists) Maps represent a collection of objects, Map data type represents a set of values as key-value pairs. Dart is an optionally typed language. If the type of a variable is not explicitly specified, the variable’s type is dynamic. The dynamic keyword can also be used as a type annotation explicitly. Dart variables
-All uninitialized variables have an initial value of null. This is because Dart considers all values as objects. -Variables declared without a static type are implicitly declared as dynamic. Variables can be also declared using the dynamic keyword in place of the var keyword. -The final and const keyword are used to declare constants, These keywords can be used together with the variable’s data type or instead of the var keyword. -The const keyword is a compile time const. Dart operators
Dart for in loop
|
Cheatography
https://cheatography.com
Dart vs C++ Cheat Sheet (DRAFT) by nimakarimian
a comparison between c++ and dart syntax
This is a draft cheat sheet. It is a work in progress and is not finished yet.