Skip to content

Instantly share code, notes, and snippets.

View johnhmj's full-sized avatar
😃
online

John "DumbSheep" Hsieh johnhmj

😃
online
View GitHub Profile
#include <iostream>
#include <cstdlib>
// Integrated Development Environment
// Visual C++
using namespace std;
//
void main(int argc, char** argv)
{
system("PAUSE");
}
<script language="javascript" type="text/javascript">
<!--
// 函式
function check(year, month, date)
{
// 宣告 Date 物件
var today = new Date();
// 用年月日判斷
if ( year > today.getFullYear() )
{
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <cstring>
#define RANDOMIZE srand((unsigned)time(NULL))
// Integrated Development Environment
// Visual C++
using namespace std;
//
#include <iostream>
#include <cstdlib>
#include <cmath>
// 12 Months of a year
#define MAX_MONTHS 12
// Integrated Development Environment
// Visual C++
using namespace std;
//
class CArrayType
#include <iostream>
#include <cstdlib>
#include <cstring>
#define BUFFERSIZE 256
// Integrated Development Environment
// Visual C++
using namespace std;
//
typedef struct DoublePointer
{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFERSIZE 1024
//
void sample(void)
{
// size_t is unsigned int type.
size_t str_size = 0, i = 0;
int alphabet = 0;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScript</title>
<script language="javascript" type="text/javascript">
<!--
// set value and get value
function setTextBox(form, value)
{
form.tb.value = value;
import java.io.*;
//import java.util.Scanner;
public class Main {
// Start of main
public static void main(String[] args) {
PrintStream jout = new PrintStream(System.out);
// Scanner jin = new Scanner(System.in);
int MAX_LENGTH = 100, MAX_NUMBER = 10;
// build rn for generating random numbers
import java.io.*;
import java.util.Scanner;
public class Main {
// Start of main
public static void main(String[] args) {
PrintStream jout = new PrintStream(System.out);
Scanner jin = new Scanner(System.in);
jout.printf("Input a number: ");
// input a number
import java.io.*;
import java.util.Scanner;
public class Main {
// Start of main
public static void main(String[] args) {
PrintStream jout = new PrintStream(System.out);
Scanner jin = new Scanner(System.in);
int[] number = { 2, 5, 4, 3, 1};
Sort(number);