Last active
August 29, 2015 14:15
-
-
Save sursir/c4c2887e7a835cdc01ae to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
printf("hello world!"); | |
return 0; | |
} | |
#test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(){ | |
print('hello, world'); | |
return 0; | |
} | |
// import 'dart:math' show Random; // Import a class from a library. | |
// void main() { // The app starts executing here. | |
// print(new Die(n: 12).roll()); // Print a new object's value. Chain method calls. | |
// } | |
// class Die { // Define a class. | |
// static Random shaker = new Random(); // Define a class variable. | |
// int sides, value; // Define instance variables. | |
// String toString() => '$value'; // Define a method using shorthand syntax. | |
// Die({int n: 6}) { // Define a constructor. | |
// if (4 <= n && n <= 20) { | |
// sides = n; | |
// } else { | |
// throw new ArgumentError(/* */); // Support for errors and exceptions. | |
// } | |
// } | |
// int roll() { // Define an instance method. | |
// return value = shaker.nextInt(sides) + 1; // Get a random number. | |
// } | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment