This file contains hidden or 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
%macro scall 4 | |
mov rax, %1 | |
mov rdi, %2 | |
mov rsi, %3 | |
mov rdx, %4 | |
syscall | |
%endmacro | |
%macro exit 0 | |
mov rax, 60 |
This file contains hidden or 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 <cmath> | |
#include <iostream> | |
#include <GL/glut.h> | |
using namespace std; | |
GLint n; //2n is number of petals on the rose | |
// The purpose of myinit() is to set up the colors for the background | |
// and foreground and to initialize appropriate matrices. | |
void myinit(){ | |
glClearColor (1.0, 1.0, 1.0, 1.0); //set the background color to white | |
glColor3f (0.0, 0.0, 0.0); //set the foreground color to black |
This file contains hidden or 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
%macro iomodule 4 | |
mov rax, %1 | |
mov rdi, %2 | |
mov rsi, %3 | |
mov rdx, %4 | |
syscall | |
%endmacro | |
%macro myprintf 1 |
This file contains hidden or 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
package Test; | |
import java.util.*; | |
public class Application { | |
private static ArrayList<String> bookList; | |
private static HashMap<Integer, String> studentList; | |
private static LinkedList<StudentList> studentDatabase; | |
private static PriorityQueue<String> waitingBooks; | |
private static Vector<Integer> countLoginedStudent; | |
private static Integer ID; |
This file contains hidden or 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
package CG; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.MouseEvent; | |
import java.awt.event.MouseListener; | |
import java.awt.image.BufferedImage; | |
import java.util.Stack; | |
public class Application extends JPanel implements MouseListener{ |
This file contains hidden or 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
package Test; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.MouseEvent; | |
import java.awt.event.MouseListener; | |
import java.awt.image.BufferedImage; | |
import java.util.*; | |
public class Application extends JPanel implements MouseListener { | |
private static final int WIDTH = 720; |
This file contains hidden or 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
%macro iomodule 4 | |
mov rax,%1 | |
mov rdi,%2 | |
mov rsi,%3 | |
mov rdx,%4 | |
syscall | |
%endmacro | |
Section .data | |
title: db 0x0A |
This file contains hidden or 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<graphics.h> | |
#include<stdlib.h> | |
using namespace std; | |
struct edge | |
{ | |
int x1,y1,x2,y2,flag; | |
}; |
This file contains hidden or 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<stdio.h> | |
#include<graphics.h> | |
using namespace std; | |
class pixel{ | |
protected: | |
int x1,x2,y1,y2; | |
void accept(); | |
}; |
This file contains hidden or 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<math.h> | |
#include<graphics.h> | |
#define ROUND(a)((int)(a+0.5)) | |
using namespace std; | |
class ABC{ | |
private: | |
int x1,y1,x2,y2,x3,y3,x4,y4; | |
public: | |
void accept(); |