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
module test030; | |
import tango.io.Stdout: Stdout; | |
void main( ){ | |
int value = 100; | |
if( value == 100 ){ | |
Stdout( "VALUE is 100." )( ); | |
} | |
if( value != 100 ){ | |
Stdout( "VALUE is not 100." )( ); | |
} |
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 <iostream> | |
using namespace std; | |
template <int a, int b> | |
struct gcm | |
{ | |
static const int value = gcm<b, a%b>::value; | |
}; | |
template <int a> |
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 <iostream> | |
template<int x, int y, int z> | |
struct tak; | |
template<int x, int y, int z, bool x_lte_y> | |
struct _tak | |
{ | |
static const int value = tak<tak<x-1,y,z>::value,tak<y-1,z,x>::value,tak<z-1,x,y>::value>::value; | |
}; |
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
import java.awt.*; | |
import java.awt.event.*; | |
import java.awt.geom.*; | |
import java.awt.image.*; | |
import javax.swing.*; | |
import java.io.*; | |
import java.util.ArrayList; | |
public class Bingoer extends JFrame implements ActionListener, KeyListener { | |
private Timer timer; |
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
#!/bin/make | |
CC = gcc | |
CXX = g++ | |
# 1. use VERY STRICT warning option. | |
# 2. use NEW STANDARD C/C++ option. | |
# 3. use BRAND NEW gcc extension. | |
CFLAGS = \ | |
-O2 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \ |
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
#!ruby -Ku | |
require "socket" | |
require "yaml" | |
class RP2P | |
def save_stat | |
File.open("stat#@port.yml", "w") do|file| | |
YAML.dump(@stat, file) |
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 /\ | |
\ | |
*\*\*\*\*\*\*\ | |
konyanyachiwa! | |
*\*\*\*\*\*\*\ | |
/ <stdio.h> | |
int ma\ | |
in (a,b) | |
int a; |
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) | |
{ | |
puts("Hello, world!"); | |
return 0; | |
} |
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(int argc, char *argv[], char *envp[]) | |
{ | |
puts("Hello, world!"); | |
return 0; | |
} |
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) { | |
int var0; | |
var0 = 2; | |
printf("%d\n", var0); | |
var0 = 4; | |
printf("%d\n", var0); | |
var0 = 3 + 5; | |
printf("%d\n", var0); |
OlderNewer