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>
#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.*;
public class Lab08c100 {
public static void main(String args[]) {
PrintStream jout = new PrintStream(System.out);
Scanner jin = new Scanner(System.in);
Quadratic q = new Quadratic();
q.Readme();
// Input value
import java.io.*;
class Quadratic {
private PrintStream jout = new PrintStream(System.out);
private double a, b, c, delta;
private CComplex x1 = new CComplex();
private CComplex x2 = new CComplex();
public Quadratic() {
this.a = 0;
import java.io.*;
public class CComplex {
public double real;
public double imaginary;
private PrintStream jout = new PrintStream(System.out);
CComplex()
{
this.real = 0;
this.imaginary = 0;
}
#include <iostream>
#include <cstdlib>
#include <cstring>
// Integrated Development Environment
// Visual C++
using namespace std;
//
class CArr
{
public:
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);