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.*; | |
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 |
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.*; | |
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; |
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.*; | |
public class CComplex { | |
public double real; | |
public double imaginary; | |
private PrintStream jout = new PrintStream(System.out); | |
CComplex() | |
{ | |
this.real = 0; | |
this.imaginary = 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 <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
class CArr | |
{ | |
public: |
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); |