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> | |
#include <cstdlib> | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
void main(int argc, char** argv) | |
{ | |
system("PAUSE"); | |
} |
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
<script language="javascript" type="text/javascript"> | |
<!-- | |
// 函式 | |
function check(year, month, date) | |
{ | |
// 宣告 Date 物件 | |
var today = new Date(); | |
// 用年月日判斷 | |
if ( year > today.getFullYear() ) | |
{ |
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> | |
#include <cstdlib> | |
#include <cmath> | |
#include <ctime> | |
#include <cstring> | |
#define RANDOMIZE srand((unsigned)time(NULL)) | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// |
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> | |
#include <cstdlib> | |
#include <cmath> | |
// 12 Months of a year | |
#define MAX_MONTHS 12 | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
class CArrayType |
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> | |
#include <cstdlib> | |
#include <cstring> | |
#define BUFFERSIZE 256 | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
typedef struct DoublePointer | |
{ |
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> | |
#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; |
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
<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; |
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.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 |
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.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 |
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.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); |
OlderNewer